pub fn extract_heading_text(lines: &[&str], index: usize) -> String
Extract the text content from a heading