(text: str)
| 371 | |
| 372 | |
| 373 | def strip_frontmatter(text: str) -> str: |
| 374 | if text.startswith("---\n"): |
| 375 | end = text.find("\n---\n", 4) |
| 376 | if end != -1: |
| 377 | return text[end + 5 :].lstrip() |
| 378 | return text |
| 379 | |
| 380 | |
| 381 | def page_title(path: Path, body: str) -> str: |
no outgoing calls
no test coverage detected