plusparse/ast library
The Markdown document AST produced by the plusparse parser.
This is a pure-Dart rewrite of the original Rust plusparse AST. The renderer (or any consumer) walks this tree, so it covers every construct gpt_markdown supports. Block-level and inline-level variants share one sealed hierarchy so the tree can nest freely (e.g. bold inside a heading inside a list item).
Classes
- MdBlockLatex
- MdBlockQuote
- MdBold
- MdCheckbox
- MdCodeBlock
- MdCustomBlock
- An extension's parsed payload. body remains raw unless the extension explicitly parses it; data should be immutable and independent of Flutter.
- MdDocument
- Root of a parsed document.
- MdHeading
- MdHorizontalRule
- MdImage
- MdInlineCode
-
Backtick span (
code), rendered as highlighted inline code. - MdInlineLatex
- MdItalic
- MdLineBreak
- MdLink
- MdListItem
- One item of an ordered/unordered list. children holds the item's inline content followed by any nested block nodes (e.g. a nested list).
- MdNode
- A node in the Markdown tree.
- MdOrderedList
- MdParagraph
- MdRadio
- MdSourceTag
-
A citation marker such as
[1]. - MdStrike
- MdTable
- MdTableCell
- One cell of a table row; holds inline content.
- MdTableRow
- One row of a table.
- MdText
- MdUnderline
- MdUnorderedList
Enums
- MdAlign
-
Column alignment for tables (from the
:---:separator row).