Return all wikilink targets found in *text*. Handles ``[[target|display text]]`` alias syntax — only the target is returned.
(text: str)
| 152 | |
| 153 | |
| 154 | def _extract_wikilinks(text: str) -> list[str]: |
| 155 | """Return all wikilink targets found in *text*. |
| 156 | |
| 157 | Handles ``[[target|display text]]`` alias syntax — only the target is returned. |
| 158 | """ |
| 159 | raw = _WIKILINK_RE.findall(text) |
| 160 | return [link.split("|")[0].strip() for link in raw] |
| 161 | |
| 162 | |
| 163 | def list_existing_wiki_targets(wiki_dir: Path) -> set[str]: |
no outgoing calls
no test coverage detected