pub fn extract_outline(markdown: &str) -> MarkdownOutline
Extracts a lightweight document outline from headings.