Skip to main content

parse_fence_marker

Function parse_fence_marker 

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

Return fence marker character and run length for a potential fence line.

Recognises backtick and tilde fences with a minimum run of 3. The input should already have leading whitespace and blockquote prefixes stripped.