AstNodeType

sealed class AstNodeType

Refer to https://spec.commonmark.org/0.30/#precedence

Commonmark specification defines 3 different types of AST nodes;

  • Container Block

  • Leaf Block

  • Inline Content

Container blocks are the most generic nodes. They define a structure for their children but do not impose any major restrictions, meaning that container blocks can contain any type of child node.

Leaf blocks are self-explanatory, they should not have any children. All the necessary content to render a leaf block should already exist in its payload

Inline Content is analogous to RichTextString and its styles. Most of the inline content nodes are about styling(bold, italic, strikethrough, code). The rest contains links, images, html content, and of course raw text.

Inheritors