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

Function isheader

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

Source from the content-addressed store, hash-verified

93
94
95def isheader(elem: Element) -> bool:
96 return elem.tag in ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
97
98
99NAME_RE = re.compile(r'[^A-Z_a-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02ff'

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected