MCPcopy
hub / github.com/yeasy/docker_practice / iter_markdown_link_targets

Function iter_markdown_link_targets

check_project_rules.py:134–143  ·  view source on GitHub ↗
(body: str)

Source from the content-addressed store, hash-verified

132
133
134def iter_markdown_link_targets(body: str):
135 pos = 0
136 while True:
137 start = body.find("](", pos)
138 if start == -1:
139 break
140 target, end = parse_markdown_target(body, start + 2)
141 if target:
142 yield start, target
143 pos = max(end + 1, start + 2)
144
145
146def check_target(path: Path, raw_target: str, line_no: int) -> list[str]:

Callers 1

check_linksFunction · 0.85

Calls 1

parse_markdown_targetFunction · 0.85

Tested by

no test coverage detected