Skip to main content

sections

Function sections 

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

Split the body into ## sections in document order as (heading, content) pairs — content is the text under each heading up to the next ## . The first pair has an empty heading and holds the preamble (title + intro) before the first ## . Follows section’s ## -delimited convention.