Expand description
§Fully‑typed Abstract Syntax Tree (AST) for CommonMark + GitHub Flavored Markdown (GFM)
This module models every construct described in the CommonMark 1.0 specification together with the widely‑used GFM extensions: tables, strikethrough, autolinks, task‑list items and footnotes.
The design separates block‑level and inline‑level nodes because parsers and renderers typically operate on these tiers independently.
Document ─┐
└─ Block ─┐
├─ Inline
└─ ...
Structs§
- Code
Block - Fenced or indented code block.
- Document
- Root of a Markdown document
- Footnote
Definition - Heading
- Heading with level 1–6 and inline content.
- Link
- Re‑usable structure for links and images (destination + children).
- Link
Definition - Link reference definition (GFM) with a label, destination and optional title.
- Link
Reference - List
- A list container — bullet or ordered.
- List
Item - Item within a list.
- List
Ordered Kind Options - Specifies what kind of list we have.
- Table
- A table is a collection of rows and columns with optional alignment. The first row is the header row.
Enums§
- Alignment
- Specifies the alignment of a table cell.
- Block
- Block‑level constructs in the order they appear in the CommonMark spec.
- Code
Block Kind - The concrete kind of a code block.
- Heading
Kind - Heading with level 1–6 and inline content.
- Inline
- List
Bullet Kind - Concrete bullet character used for a bullet list.
- List
Kind - Specifies what kind of list we have.
- Setext
Heading - Setext heading with level and underline type.
- Task
State - State of a task‑list checkbox.