MCPcopy Create free account
hub / github.com/mkdocs/mkdocs / _remove_anchorlink

Function _remove_anchorlink

mkdocs/utils/rendering.py:59–62  ·  view source on GitHub ↗

Drop anchorlink from the element, if present.

(el: etree.Element)

Source from the content-addressed store, hash-verified

57
58
59def _remove_anchorlink(el: etree.Element) -> None:
60 """Drop anchorlink from the element, if present."""
61 if len(el) > 0 and el[-1].tag == 'a' and el[-1].get('class') == 'headerlink':
62 del el[-1]
63
64
65def _remove_fnrefs(root: etree.Element) -> None:

Callers 1

get_heading_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…