MCPcopy
hub / github.com/rossant/awesome-math / _iter_headers

Function _iter_headers

build_toc.py:28–32  ·  view source on GitHub ↗
(md)

Source from the content-addressed store, hash-verified

26
27
28def _iter_headers(md):
29 headers = (line for line in md.splitlines()
30 if line.startswith('#'))
31 for header in headers:
32 yield header
33
34
35def _get_header_item(header):

Callers 1

_gen_itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected