Skip to main content

split_frontmatter

Function split_frontmatter 

Source
pub fn split_frontmatter(text: &str) -> FrontmatterSplit
Expand description

Split a leading --- frontmatter block from text — LF-only line split (CRLF leaves \r in raw), Python-whitespace .strip() on delimiter lines (BOM and U+200B are NOT whitespace and defeat the delimiter).