Skip to main content

parse

Function parse 

Source
pub fn parse(content: &str) -> Result<ParsedDocument, CoreError>
Expand description

Parse a markdown document that may start with YAML front matter.

Front matter is delimited by --- on a line by itself at the start of the document. The opening --- must be the very first line. The closing --- terminates the YAML block.

Returns the parsed metadata (if present) and the remaining markdown body.