Skip to content

fix(graph): unescape escaped pipe in table-aliased wikilinks#40

Merged
devwhodevs merged 1 commit into
mainfrom
fix/escaped-pipe-wikilinks
May 27, 2026
Merged

fix(graph): unescape escaped pipe in table-aliased wikilinks#40
devwhodevs merged 1 commit into
mainfrom
fix/escaped-pipe-wikilinks

Conversation

@devwhodevs
Copy link
Copy Markdown
Owner

@devwhodevs devwhodevs commented May 27, 2026

Markdown tables require the wikilink alias pipe to be escaped as \| — e.g. [[Page Name\|Page]]. extract_wikilink_targets split on | without unescaping, capturing Page Name\ as the target, so valid table-aliased wikilinks stayed permanently unresolved — polluting unresolved_links and dropping their graph edges.

Fix: unescape \|| before splitting. Adds a regression test.

Markdown tables escape the wikilink alias pipe as \| (e.g. [[Vlad Apukhtin\|Vlad]]). extract_wikilink_targets split on | without unescaping, capturing "Vlad Apukhtin\" as the target, so valid table-aliased wikilinks stayed permanently unresolved (polluting unresolved_links + dropping graph edges). Unescape \| -> | before splitting. Regression test added.
@devwhodevs devwhodevs merged commit 7af8a73 into main May 27, 2026
1 check passed
@devwhodevs devwhodevs deleted the fix/escaped-pipe-wikilinks branch May 27, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant