pub fn frontmatter_value(text: &str, key: &str) -> Option<String>
The value of key in the frontmatter block at the top of text (--- … ---), at any indent so a nested metadata: key is found too.
key
text
---
metadata: