Skip to main content

parse_frontmatter

Function parse_frontmatter 

Source
pub fn parse_frontmatter(src: &str) -> (Frontmatter, &str)
Expand description

Parse YAML-ish frontmatter from markdown source.

Returns the parsed frontmatter and the body (everything after the closing ---). Handles simple key: value and key: "value" formats.