Skip to content

Ignore wikilinks overlapping inline code#449

Open
hendkai wants to merge 1 commit into
Feel-ix-343:mainfrom
hendkai:fix-inline-code-wikilink-diagnostics
Open

Ignore wikilinks overlapping inline code#449
hendkai wants to merge 1 commit into
Feel-ix-343:mainfrom
hendkai:fix-inline-code-wikilink-diagnostics

Conversation

@hendkai

@hendkai hendkai commented May 13, 2026

Copy link
Copy Markdown

Fixes #269

/claim #269

Summary

  • Treat references that overlap inline/fenced code ranges as ignored when references_in_codeblocks is disabled.
  • Prevents separated literal code spans like `[[` and `]]` from being joined into a false wikilink.
  • Adds a regression test that preserves normal wikilinks outside code.

Verification

  • cargo fmt --check
  • cargo test

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.

Unresolved reference when using [[ and ]]

1 participant