kdnk_obsidian-automatic-linker/src
Kodai Nakamura 846ebda9ce fix(replace-links): preserve unclosed fenced code blocks
Why:
- Markdown treats an opening fenced code block without a closing fence as code through the end of the document.
- Automatic linking was still processing that content as normal text, which could turn code block contents into wiki links.

What:
- Extract fenced code blocks before heading, callout, table, and link replacement processing.
- Preserve unmatched fenced blocks through EOF and restore them unchanged after replacement.
- Add regression coverage for unclosed code blocks, including when heading protection is enabled.
2026-05-30 10:32:24 +09:00
..
__mocks__ fix: resolve lint and formatting errors in AI Link Enhancer implementation 2026-04-06 23:19:38 +09:00
__tests__ fix: escape Obsidian alias links in tables 2026-05-30 09:40:36 +09:00
exclude-links chore: add stylistic eslint plugin and format code 2025-12-20 20:43:05 +09:00
remove-minimal-indent chore: fix test 2025-12-20 21:26:16 +09:00
replace-links fix(replace-links): preserve unclosed fenced code blocks 2026-05-30 10:32:24 +09:00
replace-url-with-title chore: add stylistic eslint plugin and format code 2025-12-20 20:43:05 +09:00
replace-urls fix(plugin): resolve obsidian compatibility warnings 2026-05-26 21:49:50 +09:00
settings feat: add option to ignore markdown tables 2026-05-30 09:46:29 +09:00
utils fix: resolve lint and formatting errors in AI Link Enhancer implementation 2026-04-06 23:19:38 +09:00
frontmatter-utils.ts chore: add stylistic eslint plugin and format code 2025-12-20 20:43:05 +09:00
main.ts feat: add option to ignore markdown tables 2026-05-30 09:46:29 +09:00
path-and-aliases.types.ts chore: add stylistic eslint plugin and format code 2025-12-20 20:43:05 +09:00
plugin-compat.ts fix(plugin): resolve obsidian compatibility warnings 2026-05-26 21:49:50 +09:00
trie.ts fix(plugin): resolve obsidian compatibility warnings 2026-05-26 21:49:50 +09:00
update-editor.ts chore: add stylistic eslint plugin and format code 2025-12-20 20:43:05 +09:00