Skip to main content

Module model

Module model 

Source
Expand description

The Document IR — the format-neutral model every extractor produces and every renderer consumes.

Deliberately modest: the goal is clean Markdown, not pixel-perfect layout. Anything that cannot be expressed here (fonts, colours, absolute positions) is intentionally dropped during extraction.

Structs§

Document
A parsed document: metadata plus an ordered list of block-level elements.
Inline
Inline content: a sequence of spans.
Metadata
Document-level metadata. Every field is optional — most formats supply only a subset.
Row
A single table row.

Enums§

Block
A block-level element.
Span
Inline markup. Kept minimal on purpose — bold, italic, code, links, breaks.