fn markdown_heading(line: &str) -> Option<(usize, &str)>
Extracts a Markdown heading level and its title from one source line.