pub fn split_frontmatter(
text: &str,
file: &Path,
) -> Result<ParsedFile, ParseError>Expand description
Split a file’s full text into its frontmatter block and body. The
frontmatter block must be the very first thing in the file, delimited by
--- on its own line at start and end. Returns
ParseError::MissingFrontmatter if absent.