Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rossant/awesome-math
/ _parse_header
Function
_parse_header
build_toc.py:20–25 ·
view source on GitHub ↗
(header)
Source
from the content-addressed store, hash-verified
18
19
20
def
_parse_header(header):
21
r = re.match(_HEADER_REGEX, header)
22
if
r:
23
level = len(r.group(1))
24
name = r.group(2)
25
return
level, _anchor(name), name
26
27
28
def
_iter_headers(md):
Callers
1
_get_header_item
Function · 0.85
Calls
1
_anchor
Function · 0.85
Tested by
no test coverage detected