Skip to content

ReadResult

Defined in: src/core/ir/adapters.ts:17

The result of DocumentReader.read: the parsed tree plus any losses.

TDoc

readonly doc: TDoc

Defined in: src/core/ir/adapters.ts:19

The parsed document tree.


readonly optional flowing?: () => ReadResult<TDoc>

Defined in: src/core/ir/adapters.ts:30

The same source read again as a document that flows, for a medium that places nothing — Markdown. Present only where the reader kept the source as a page for marks such a medium drops anyway: a PDF whose words are mostly glyphs it names no character for, or whose tables are ruled, kept where its marks stand so that a paged medium can show them exactly. Called only by that medium, so the source is read twice only when it asks.

ReadResult<TDoc>


readonly losses: LossReport

Defined in: src/core/ir/adapters.ts:21

Losses recorded while reading.