Skip to main content

numbered_ordinals

Function numbered_ordinals 

pub fn numbered_ordinals(blocks: &[Block]) -> Vec<u32>
Expand description

1-based ordinal per Numbered block, 0 for non-numbered rows. Numbered per contiguous run at each indent level: a deeper level restarts under its parent. A different list kind resets its own level and deeper levels, while preserving the numbering of its ancestors.