Skip to main content

get_all_sections

Function get_all_sections 

Source
pub fn get_all_sections(doc: &Document) -> Vec<(BlockId, usize)>
Expand description

Get all sections (heading blocks) in the document.

§Arguments

  • doc - The document to search

§Returns

  • Vec<(BlockId, usize)> - List of (section_id, heading_level) tuples