Skip to main content

parse_heading_line

Function parse_heading_line 

Source
pub fn parse_heading_line(line: &str) -> Option<(usize, &str)>
Expand description

Parses a single line as an ATX heading (# through ###### ).

Returns (level, text) if the line is a heading, or None otherwise.