Skip to main content

split_frontmatter

Function split_frontmatter 

Source
pub fn split_frontmatter(content: &str) -> Option<(&str, &str)>
Expand description

Split YAML frontmatter from markdown content.

Returns (yaml_str, body) if frontmatter delimiters (---) are found, or None if the content has no frontmatter.