(text: str)
| 22 | |
| 23 | |
| 24 | def split_frontmatter(text: str) -> Tuple[str, str]: |
| 25 | if text.startswith("---\n"): |
| 26 | end = text.find("\n---\n", 4) |
| 27 | if end != -1: |
| 28 | return text[4:end], text[end + 5 :] |
| 29 | return "", text |
| 30 | |
| 31 | |
| 32 | def parse_meta(frontmatter: str) -> dict: |