Function minimad::header_level
source · pub fn header_level(src: &str) -> usize
Expand description
count the number of ‘#’ at start. Return 0 if they’re not followed by a ’ ’ or if they’re too many
pub fn header_level(src: &str) -> usize
count the number of ‘#’ at start. Return 0 if they’re not followed by a ’ ’ or if they’re too many