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

Function strip_first_h1

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

Source from the content-addressed store, hash-verified

606
607
608def strip_first_h1(text: str) -> str:
609 return re.sub(r"^#\s+.+\n+", "", text, count=1, flags=re.MULTILINE).lstrip()
610
611
612def original_readme_anchor(text: str) -> str:

Callers 2

write_project_pagesFunction · 0.85
copy_existing_docsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected