Skip to main content

split_frontmatter

Function split_frontmatter 

Source
pub fn split_frontmatter(content: &str) -> (Option<String>, String)
Expand description

pi’s extractFrontmatter: the YAML between --- lines, when there is any, and the trimmed markdown body after it.