Skip to main content

non_fenced_lines

Function non_fenced_lines 

Source
pub fn non_fenced_lines(content: &str) -> impl Iterator<Item = (usize, &str)>
Expand description

Iterate over lines that are NOT inside fenced code blocks or YAML frontmatter. Yields (0-based line index, line content) pairs, skipping lines within ``` or ~~~ fenced regions, and skipping YAML frontmatter (--- delimited block at the very start of the file).