MCPcopy Create free account
hub / github.com/OWASP/APTS / extract_link_targets

Function extract_link_targets

scripts/check_internal_markdown_links.py:64–67  ·  view source on GitHub ↗
(markdown_text: str)

Source from the content-addressed store, hash-verified

62
63
64def extract_link_targets(markdown_text: str) -> list[str]:
65 targets = [match.group(1) for match in MARKDOWN_LINK_PATTERN.finditer(markdown_text)]
66 targets.extend(match.group(1) for match in HTML_LINK_PATTERN.finditer(markdown_text))
67 return targets
68
69
70def main() -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected