MCPcopy Create free account
hub / github.com/DevCloudNinjas/DevOps-Projects / strip_frontmatter

Function strip_frontmatter

tools/build_starlight_content.py:373–378  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

371
372
373def 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
381def page_title(path: Path, body: str) -> str:

Callers 1

copy_existing_docsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected