Skip to main content

Module format_runs_query

Module format_runs_query 

Source
Expand description

Store-aware readers that synthesize inline content views from per-block format_runs + block_images. The canonical entry point is inline_segments_for_block, which returns the Vec<InlineSegment> view used by export, fragments, cursor, and tests.

Functions§

get_block_images
Fetch the image anchors for a block.
get_format_runs
Fetch the format runs for a block. Returns an empty Vec if the block has no runs (treated the same as a missing entry).
inline_segments_for_block
Synthesize the Vec<InlineSegment> view for a block from its format_runs and block_images. Callers must pass the block’s plain_text (which they already have in scope from a prior get_block call) — this avoids re-locking the blocks table.