Document

struct Document

A Markdown document parsed into block nodes with recursively parsed inline content.

The tree is presentation-neutral: source offsets and trivia are not retained, and enabled extensions are reflected directly in node cases such as tables, task-list state, and strikethrough.

Properties

let blocks: [Block]

Top-level block nodes in source order.