ReadResult
Defined in: src/core/ir/adapters.ts:17
The result of DocumentReader.read: the parsed tree plus any losses.
Type Parameters
Section titled “Type Parameters”TDoc
Properties
Section titled “Properties”
readonlydoc:TDoc
Defined in: src/core/ir/adapters.ts:19
The parsed document tree.
flowing?
Section titled “flowing?”
readonlyoptionalflowing?: () =>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.
Returns
Section titled “Returns”ReadResult<TDoc>
losses
Section titled “losses”
readonlylosses:LossReport
Defined in: src/core/ir/adapters.ts:21
Losses recorded while reading.