Skip to main content

render_sections

Function render_sections 

Source
pub fn render_sections(source: &str, settings: &Settings) -> Vec<Section>
Expand description

The document’s top-level sections, each with the source lines it came from, for a consumer that diffs or pairs them. A list gives one section per top-level item, nested items staying inside theirs; the footnote definitions are one last section. No blank line separates or surrounds them: render puts one between sections and between loose items.