(raw_target: str)
| 99 | |
| 100 | |
| 101 | def normalize_target(raw_target: str) -> str: |
| 102 | target = raw_target.strip() |
| 103 | target = target.split("?", 1)[0].split("#", 1)[0] |
| 104 | return unquote(target) |
| 105 | |
| 106 | |
| 107 | def parse_markdown_target(body: str, start: int) -> tuple[str, int]: |