parse_frontmatter

Function parse_frontmatter 

Source
pub fn parse_frontmatter<F: DeserializeOwned>(
    content: &str,
) -> Result<ParsedDocument<F>>
Expand description

Parse frontmatter from content, returning structured metadata and body.

Returns an error if frontmatter is missing or malformed.