API Reference Markup.Djot v#0.1.0

Copy Markdown View Source

Modules

Djot for Markup, backed by the Rust jotdown crate.

Helpers for node attribute lists.

A block quote.

A table caption.

A fenced code block.

Deleted text ({-x-}).

The details of a definition list term.

A definition list.

A term in a definition list.

A ::: div. class is the class given after the fence.

Emphasis (_x_).

Returned (or raised) when rendering, sanitizing, or highlighting a Djot document fails.

A footnote definition.

A footnote reference ([^label]).

A hard line break.

A heading. has_section is true when wrapped by a Markup.Djot.Section that owns the id.

An image; nodes are the alt text. link_type as in Markup.Djot.Link.

Inserted text ({+x+}).

A link. link_type is :inline, :reference, :unresolved, :autolink, or :email.

A reference link definition. Not rendered.

An item of a bullet or ordered list.

Highlighted text ({=x=}).

Inline ($x) or display (`$$`x) math.

A non-breaking space (\).

A paragraph.

Raw HTML written verbatim. Never produced by the parser; for plugins (see Markup.safe_html/2).

A raw block (```=format). Only html is rendered.

Raw inline content (`x`{=format}). Only html is rendered.

A section wrapping a heading and the blocks under it.

Smart punctuation. kind is :left_single_quote, :right_single_quote, :left_double_quote, :right_double_quote, :ellipsis, :en_dash, or :em_dash.

A soft line break.

A [text]{attrs} span.

Strong emphasis (*x*).

Subscript (~x~).

Superscript (^x^).

A symbol (:name:), rendered as :name:.

A table cell. alignment is :unspecified, :left, :center, or :right.

A table row.

An item of a task list.

Plain text.

A thematic break (<hr>).

Inline code.