frontmatter_gen::parserFunction parse
Source pub fn parse(
raw_frontmatter: &str,
format: Format,
) -> Result<Frontmatter, FrontmatterError>
Expand description
Convenience wrapper around parse_with_options using default options
§Arguments
raw_frontmatter - A string slice containing the raw frontmatter content
format - The Format enum specifying the desired format
§Returns
A Result containing either the parsed Frontmatter object or a FrontmatterError