Skip to main content

parse_frontmatter

Function parse_frontmatter 

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

A leading --- key: value --- block and the body after it.

Not YAML: one level of key: value, quotes stripped, and a file without the block is all body. A skill that meant to declare a name and did not is read as prose rather than half-parsed.