Structs§
- Parsed
Block - A parsed block (paragraph, heading, list item, code block)
- Parsed
Span - A parsed inline span with formatting info
- Parsed
Table - A parsed table extracted from markdown or HTML.
- Parsed
Table Cell - A parsed table cell containing inline spans.
Enums§
- Parsed
Element - A parsed element: either a block or a table.
Constants§
- TABLE_
ANCHOR - The
U+FFFC OBJECT REPLACEMENT CHARACTERthat stands for a table in the document’s text.
Functions§
- character_
format_ from_ span - Convert a
ParsedSpan(parser output) into theCharacterFormatused byFormatRun.is_code_blockforcesmonospaceas the font family for every span inside a code block. - djot_
to_ plain_ text - The prose of a Djot document, with no entities, no store, and no threads.
- format_
runs_ from_ spans - Translate a slice of parsed spans into
(plain_text, format_runs). - parse_
djot - Parse djot source into the shared
ParsedElementintermediate, mirroringparse_markdown. Uses thejotdownpull parser. - parse_
html - parse_
html_ elements - parse_
markdown