Skip to content

fix: ignore wiki-link matches spanning inline code - #475

Open
brawliscool wants to merge 3 commits into
Feel-ix-343:mainfrom
brawliscool:codex/fix-inline-code-wikilink-269
Open

brawliscool wants to merge 3 commits into
Feel-ix-343:mainfrom
brawliscool:codex/fix-inline-code-wikilink-269

Conversation

@brawliscool

@brawliscool brawliscool commented Jun 19, 2026 •

Copy link
Copy Markdown

Fixes #269

Summary

  • ignore reference matches that overlap inline or fenced code when references_in_codeblocks is disabled
  • prevent separate `[[` and `]]` spans from being combined into a false wiki-link
  • ignore complete wiki-links used as literal syntax inside inline code
  • preserve valid wiki-links directly adjacent to inline code
  • preserve the existing references_in_codeblocks = true opt-in behavior

Verification

  • cargo test - 78 passed
  • cargo fmt --check
  • git diff --check

Bounty

/claim #269

@brawliscool

Copy link
Copy Markdown
Author

/claim #269

This branch has not been deployed

No deployments
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