(body: str)
| 132 | |
| 133 | |
| 134 | def 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 | |
| 146 | def check_target(path: Path, raw_target: str, line_no: int) -> list[str]: |
no test coverage detected