Block

enum Block

A block-level Markdown node.

Child arrays preserve source order. Payloads contain semantic content rather than delimiter spellings; for example, code blocks carry decoded info/content and tables separate header, alignment, and body rows.

Cases

case paragraph([Inline])

A paragraph containing inline nodes.

case heading(Int, [Inline])

A heading level and its inline contents.

case blockQuote([Block])

Blocks nested under a block-quote marker.

case unorderedList([ListItem])

Unordered list items in source order.

case orderedList(Int, [ListItem])

An ordered list's starting number and items.

case codeBlock(String?, String)

An optional info string and the literal contents of a fenced or indented code block.

case thematicBreak

A thematic break such as --- or ***.