Skip to main content

frontmatter_value

Function frontmatter_value 

Source
pub fn frontmatter_value(text: &str, key: &str) -> Option<String>
Expand description

The value of key in the frontmatter block at the top of text (--- … ---), at any indent so a nested metadata: key is found too.