Expand description
Structs§
- Alert
- A GFM alert / admonition. Source:
> [!NOTE]followed by quoted content. - Autolink
- An autolink:
<url>or a GFM bare URL. - Block
Quote - A block quote: content prefixed with
>. - Character
Reference - A character reference such as
&or÷. - Code
Block - A code block. Source:
```lang … ```(fenced) or 4-space-indented lines. - Code
Inline - An inline code span:
`code`. - Container
Directive - A container directive. Source:
:::name[label]{attrs}…:::(a directive feature, not MDX). - Definition
- A link reference definition. Source:
[label]: destination "title". - Delete
- Strikethrough:
~~text~~(or single~text~when single-tilde is enabled). - Description
Details - The details (
: …) attached to aDescriptionItem’s term. - Description
Item - One entry of a
DescriptionList: a term and its detail blocks. Source: a term line followed by: detailslines. - Description
List - A description / definition list of term + details pairs.
- Directive
Attribute - One attribute of a directive’s
{name=value}block. - Document
- The root of a parsed document: a sequence of top-level
Blocks. - Emphasis
- Emphasis (typically italic):
*text*or_text_. - Escape
- A backslash escape such as
\*or\\. - Footnote
Definition - A footnote definition. Source:
[^id]: footnote text. - Footnote
Reference - A footnote reference:
[^id]. - Frontmatter
- A leading frontmatter block. Source:
---YAML or+++TOML at the top of the document. - Heading
- A heading. Source:
# Title(ATX) orTitle\n===(setext). - Html
Block - A raw HTML block: HTML emitted verbatim.
- Html
Inline - Raw inline HTML such as
<span>or</em>. - Image
- An inline image:
. - Image
Reference - A reference image:
![alt][label],![alt][], or![alt]. - Inline
Footnote - An inline footnote:
^[inline note]. - Insert
- A CriticMarkup-style insertion:
++text++. - Leaf
Directive - A leaf directive. Source:
::name[label]{attrs}(a directive feature, not MDX). - Line
Break - A hard line break: a trailing
\or two trailing spaces. - Link
- An inline link:
[text](destination "title"). - Link
Reference - A reference link:
[text][label],[text][], or[text]. - List
- A bullet or ordered list. Source:
- a/1. alines. - List
Item - A single list item, optionally a GFM task-list checkbox.
- Mark
- A highlight / “mark” span:
==text==. - Math
Block - A display math block. Source:
$$ … $$. - Math
Inline - Inline math:
$x$. - MdxEsm
- An MDX ESM block: top-level
import/exportstatements (distinct from directives). - MdxExpression
- A block-level MDX expression:
{ … }(distinct from directives). - MdxExpression
Inline - An inline MDX expression:
{ … }(distinct from directives). - MdxJsx
- A block-level MDX JSX element (distinct from directives).
- MdxJsx
Inline - An inline MDX JSX element (distinct from directives).
- Node
Meta - Metadata attached to every AST node; currently just the source span.
- Paragraph
- A paragraph: a run of inline content. Source: any plain text line(s).
- Shortcode
- An emoji-style shortcode:
:name:. - Soft
Break - A soft line break: a plain newline within a paragraph.
- Spoiler
- A spoiler span:
||text||. - Strong
- Strong emphasis (typically bold):
**text**or__text__. - Subscript
- Subscript:
~x~. - Superscript
- Superscript:
^x^. - Table
- A GFM pipe table: a header row, an alignment row, then body rows. Source:
| a | b |/|---|---|/| 1 | 2 |. - Table
Cell - A single cell of a
TableRow. - Table
Row - A single row of a
Table. - Text
- Literal text content.
- Text
Directive - A text directive. Source:
:name[label]{attrs}(a directive feature, not MDX). - Thematic
Break - A thematic break / horizontal rule. Source:
---,***, or___. - Underline
- Underline (underscore extension):
__text__or___text___. - Wiki
Link - A wiki link:
[[target|label]].
Enums§
- Alert
Kind - The kind of a GFM
Alert(the[!KIND]marker). - Autolink
Kind - Whether an
Autolinkis angle-bracketed or a GFM bare literal. - Block
- A block-level node: the building blocks of a document’s vertical structure.
- Code
Block Kind - Whether a
CodeBlockis fenced or indented. - Delete
Marker - Which tilde run delimited a
Deletespan. - Fence
Marker - The character used to fence a
CodeBlock. - Frontmatter
Kind - The format of a
Frontmatterblock. - Heading
Kind - Which heading syntax produced a
Heading. - Inline
- An inline-level node: the leaf and span content inside blocks.
- Line
Break Kind - Which syntax produced a hard
LineBreak. - Link
Destination Kind - How a link/image destination was delimited in the source.
- Link
Title Kind - How a link/image title was quoted in the source.
- List
Delimiter - The marker character that delimits a list’s items.
- Math
Inline Kind - Which syntax delimited an inline
MathInlinespan. - Reference
Kind - The form of a reference link/image.
- Table
Alignment - The alignment of a
Tablecolumn, from the:---:delimiter row. - Thematic
Break Marker - The character used to draw a
ThematicBreak. - Wiki
Link Label Order - Whether a
WikiLink’s label preceded or followed the|separator.