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

Function _heading_text

website/readme_parser.py:109–114  ·  view source on GitHub ↗

Extract plain text from a heading node.

(node: SyntaxTreeNode)

Source from the content-addressed store, hash-verified

107
108
109def _heading_text(node: SyntaxTreeNode) -> str:
110 """Extract plain text from a heading node."""
111 for child in node.children:
112 if child.type == "inline":
113 return render_inline_text(child.children)
114 return ""
115
116
117def _heading_level(node: SyntaxTreeNode) -> int | None:

Callers 3

_parse_grouped_sectionsFunction · 0.85
parse_sponsorsFunction · 0.85
parse_readmeFunction · 0.85

Calls 1

render_inline_textFunction · 0.85

Tested by

no test coverage detected