Skip to main content Module content_parser Copy item path Source ParsedBlock A parsed block (paragraph, heading, list item, code block) ParsedImage An inline image recovered by a parser, before it becomes an ImageAnchor. ParsedInline The three parallel things a block stores, as recovered from parsed spans. ParsedSpan A parsed inline span with formatting info. ParsedTable A parsed table extracted from markdown or HTML. ParsedTableCell A parsed table cell containing inline spans. ParsedElement A parsed element: either a block or a table. HTML_FOOTNOTE_ATTR The attribute an HTML producer uses to say “this element is a footnote
reference”, and the label it names. TABLE_ANCHOR The U+FFFC OBJECT REPLACEMENT CHARACTER that stands for a table in the document’s
text. character_format_from_span Convert a ParsedSpan (parser output) into the CharacterFormat used by
FormatRun. is_code_block forces monospace as 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 ParsedElement intermediate, mirroring
parse_markdown . Uses the jotdown pull parser. parse_html parse_html_elements parse_markdown