Skip to main content

front_matter

Function front_matter 

Source
pub fn front_matter(text: &str) -> (BTreeMap<String, Vec<String>>, usize)
Expand description

The front matter: the lines between a first “—” and the next, read as simple YAML (key: value, key: [a, b], key: then - item lines). Returns it, and the line where the text starts.