mweiss/elm-rte-toolkit/1.0.2

NOTE: the latest version is 1.0.4

RichText.Definitions

Markdown spec

A spec which is compatible with the CommonMark flavor of markdown.

Definitions

The definitions used in the markdown specification.

Elements

doc : ElementDefinition

The root element of a document.

blockquote : ElementDefinition

A blockquote element. It can have block children.

codeBlock : ElementDefinition

A code block element.

hardBreak : ElementDefinition

Hard break is an inline leaf which represents a line break in a document.

heading : ElementDefinition

A heading element. It can have inline children. It supports one integer attribute level, which defaults to 1 if not set.

horizontalRule : ElementDefinition

A horizontal rule element. It is a block leaf, e.g. it can have no children.

image : ElementDefinition

An inline image. It can have three different string attributes:

  • src is the uri of the image to show
  • alt is the alt text of the image
  • title is the title of the image
paragraph : ElementDefinition

A paragraph element. It can have inline children.

listItem : ElementDefinition

A list item element definition. It can have block children.

orderedList : ElementDefinition

An ordered list element definition. It can have list item children.

unorderedList : ElementDefinition

An unordered list element definition. It can have list item children.

Marks

bold : MarkDefinition

A bold mark definition.

code : MarkDefinition

A code mark definition.

italic : MarkDefinition

An italic mark definition.