Skip to main content

inline_segments_for_block

Function inline_segments_for_block 

Source
pub fn inline_segments_for_block(
    store: &Store,
    block_id: EntityId,
    block_plain_text: &str,
) -> Vec<InlineSegment>
Expand description

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.

This is the Phase 1.14b-and-forward reader function. Returns segments in document order.