Skip to main content

section_spans

Function section_spans 

Source
pub fn section_spans(body: &str) -> Vec<(String, Range<usize>)>
Expand description

The byte range of each ## section’s content (the text under the heading, up to the next ## ), paired with its heading, in document order — the preamble (empty heading) first unless it is blank. The blocks projection’s seq indexes into this, so it is the addressing scheme for section edits.