kdnk_obsidian-automatic-linker/src/replace-url-with-title
Kodai Nakamura 29582da575 fix(markdown): preserve table context after wikilink rewrites
Why: resolved wikilink rewrites can shift segment offsets before the prose pass that decides whether a row is inside a markdown table, which breaks alias escaping in table links. Angle-bracket autolinks also need to stay untouched when URL titles are available.

What: use the rewritten body when checking table context in the second prose-mapping pass, and skip URL-title replacement when a matched URL is wrapped in angle brackets. Add regression tests for both cases.
2026-06-22 03:13:34 +09:00
..
__tests__ fix(markdown): preserve table context after wikilink rewrites 2026-06-22 03:13:34 +09:00
utils fix(markdown): protect variable-length fenced code blocks 2026-06-22 03:05:52 +09:00
index.ts fix(markdown): preserve table context after wikilink rewrites 2026-06-22 03:13:34 +09:00