Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
87
def
isheader(elem: Element) -> bool:
88
return
elem.tag in [
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
]
89
90
91
class
AttrListTreeprocessor(Treeprocessor):
Callers
1
run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected