MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / isheader

Function isheader

markdown/extensions/attr_list.py:87–88  ·  view source on GitHub ↗
(elem: Element)

Source from the content-addressed store, hash-verified

85
86
87def isheader(elem: Element) -> bool:
88 return elem.tag in ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
89
90
91class AttrListTreeprocessor(Treeprocessor):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected