Skip to main content

parse_frontmatter_checked

Function parse_frontmatter_checked 

Source
pub fn parse_frontmatter_checked(raw: &str) -> (Parsed, Option<String>)
Expand description

Like parse_frontmatter, but also reports the YAML error message when a frontmatter block exists but fails to parse (the Parsed still carries Value::Null, so behavior is identical for callers that ignore the error). An absent or empty frontmatter block is not an error.