Skip to main content

extract_h1

Function extract_h1 

Source
pub fn extract_h1(content: &str) -> Option<String>
Expand description

Extract the H1 title from markdown content, if present.

Looks for the first # Title line at the top of the document (skipping blank lines). Returns None if no H1 is found before the first non-blank, non-heading line.