MCPcopy Index your code
hub / github.com/mkdocs/mkdocs / get_heading_text

Function get_heading_text

mkdocs/utils/rendering.py:22–27  ·  view source on GitHub ↗
(el: etree.Element, md: markdown.Markdown)

Source from the content-addressed store, hash-verified

20
21
22def get_heading_text(el: etree.Element, md: markdown.Markdown) -> str:
23 el = copy.deepcopy(el)
24 _remove_anchorlink(el)
25 _remove_fnrefs(el)
26 _extract_alt_texts(el)
27 return _strip_tags(_render_inner_html(el, md))
28
29
30def _strip_tags(text: str) -> str:

Callers 1

runMethod · 0.90

Calls 5

_remove_anchorlinkFunction · 0.85
_remove_fnrefsFunction · 0.85
_extract_alt_textsFunction · 0.85
_strip_tagsFunction · 0.85
_render_inner_htmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…