MCPcopy
hub / github.com/vinta/awesome-python / top_level_heading_text

Function top_level_heading_text

website/build.py:311–316  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

309
310
311def top_level_heading_text(line: str) -> str | None:
312 stripped = line.strip()
313 match = re.match(r"^(#{1,2})\s+(.+)$", stripped)
314 if match is None:
315 return None
316 return match.group(2).strip().strip("#").strip().strip("*").strip()
317
318
319def extract_categories_body(markdown: str) -> str:

Callers 2

extract_categories_bodyFunction · 0.85
remove_sponsors_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected