(match: re.Match[str])
| 475 | text = normalize_code_fence_languages(text) |
| 476 | |
| 477 | def replace_image(match: re.Match[str]) -> str: |
| 478 | alt, raw_target = match.group(1), match.group(2) |
| 479 | target, title = split_markdown_destination(raw_target) |
| 480 | target = normalize_external_image_url(target) |
| 481 | if is_external_or_anchor(target): |
| 482 | if target.startswith("#"): |
| 483 | return f"" |
| 484 | return external_image_reference(alt, target) |
| 485 | source_path, _ = repo_source_path(project_dir, target) |
| 486 | raw_path = quote(source_path, safe="/:@") |
| 487 | return f"" |
| 488 | |
| 489 | def replace_link(match: re.Match[str]) -> str: |
| 490 | label, raw_target = match.group(1), match.group(2) |
nothing calls this directly
no test coverage detected