MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / render_inner_html

Function render_inner_html

markdown/extensions/toc.py:138–148  ·  view source on GitHub ↗

Fully render inner html of an `etree` element as a string.

(el: etree.Element, md: Markdown)

Source from the content-addressed store, hash-verified

136
137
138def render_inner_html(el: etree.Element, md: Markdown) -> str:
139 """ Fully render inner html of an `etree` element as a string. """
140 # The `UnescapeTreeprocessor` runs after `toc` extension so run here.
141 text = unescape(md.serializer(el))
142
143 # strip parent tag
144 start = text.index('>') + 1
145 end = text.rindex('<')
146 text = text[start:end].strip()
147
148 return run_postprocessors(text, md)
149
150
151def remove_fnrefs(root: etree.Element) -> etree.Element:

Callers 1

runMethod · 0.85

Calls 2

unescapeFunction · 0.85
run_postprocessorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…