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

Function _remove_fnrefs

mkdocs/utils/rendering.py:65–68  ·  view source on GitHub ↗

Remove footnote references from the element, if any are present.

(root: etree.Element)

Source from the content-addressed store, hash-verified

63
64
65def _remove_fnrefs(root: etree.Element) -> None:
66 """Remove footnote references from the element, if any are present."""
67 for parent in root.findall('.//sup[@id]/..'):
68 _replace_elements_with_text(parent, _predicate_for_fnrefs)
69
70
71def _predicate_for_fnrefs(el: etree.Element) -> str | None:

Callers 1

get_heading_textFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…