render_model library

The flat render model as the parse crate emits it, with the schema constants. Hosts that paint from a Projection rarely need this; tests and advanced consumers read it directly.

Classes

BlockField
BlockFlag
The named bits of a block's flags (RenderModel.blockFlags). A bit means something only for the kinds that name it; the schema's block_attrs (native/flark_parse/schema/render_model_v5.json, and SCHEMA.md) is their source.
BlockKind
BlockKindFlags
Fields packed into block.kind_flags.
CodeBlockExtra
Extra record of fenced code_block blocks.
ContentField
ContentLineVirtual
Fields packed into content.line_virtual.
DefinitionField
DisplayTextExtra
Extra record of replacement runs, and code runs with flags bit1.
FootnoteDefinitionExtra
Extra record of footnote_definition blocks.
FootnoteRefExtra
Extra record of footnote_ref runs.
HeaderField
ItemExtra
Extra record of item blocks.
LineField
LinkExtra
Extra record of link, image and autolink runs.
RenderModel
The flat render model written by flark_parse, read through typed-data views. Nothing is materialized until a host asks for it.
RenderModelSchema
RunExtraField
RunField
RunFlag
The named bits of a run's flags (RenderModel.runFlags); the schema's run_attrs are their source.
RunHidden
Fields packed into run.hidden.
RunKind
RunKindFlagsParent
Fields packed into run.kind_flags_parent.
TableAlignment
TableExtra
Extra record of table blocks.
WideRunExtra
Extra record of runs with flags bit3; the other kind's record follows.

Constants

noParent → const int
Sentinel for "no parent" in block and run parent fields.