(raw: Any)
| 22 | |
| 23 | |
| 24 | def _normalize_ref(raw: Any) -> str: |
| 25 | text = str(raw or "").strip().strip('"').strip("'") |
| 26 | if not text: |
| 27 | return "" |
| 28 | text = text.split("#", 1)[0].split("?", 1)[0].strip() |
| 29 | if text.startswith("./"): |
| 30 | text = text[2:] |
| 31 | return text |
| 32 | |
| 33 | |
| 34 | def _resolve_markdown_image_path(mineru_root: Path, ref: str) -> Path | None: |
no outgoing calls
no test coverage detected