Function get_section_depth
Source pub fn get_section_depth(doc: &Document, section_id: &BlockId) -> Option<usize>
Expand description
Get the depth of a section in the document hierarchy.
§Arguments
doc - The document to search
section_id - The section to find the depth of
§Returns
Some(usize) - The depth (0 for root children)
None - If the section doesn’t exist