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

Function _render_inner_html

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

Source from the content-addressed store, hash-verified

42
43
44def _render_inner_html(el: etree.Element, md: markdown.Markdown) -> str:
45 # The `UnescapeTreeprocessor` runs after `toc` extension so run here.
46 text = md.serializer(el)
47 text = _unescape(text)
48
49 # Strip parent tag
50 start = text.index('>') + 1
51 end = text.rindex('<')
52 text = text[start:end].strip()
53
54 for pp in md.postprocessors:
55 text = pp.run(text)
56 return text
57
58
59def _remove_anchorlink(el: etree.Element) -> None:

Callers 1

get_heading_textFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…