Skip to content

Ignore wikilink markers inside inline code - #457

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

Ignore wikilink markers inside inline code#457
cobymyers wants to merge 1 commit into
Feel-ix-343:mainfrom
cobymyers:fix-inline-code-wikilink-markers

Conversation

@cobymyers

Copy link
Copy Markdown

Fixes #269

/claim #269

Summary

  • filter parsed references that overlap inline/fenced code spans when references_in_codeblocks is disabled
  • prevents literal inline-code markers like `[[` and `]]` from becoming a fake unresolved wikilink
  • adds regression coverage plus a control case for a real wikilink next to inline code

Verification

  • cargo fmt --check
  • cargo test wiki_link -- --nocapture
  • cargo test
  • git diff --check

Payout note: this is for the $5 Algora bounty. GitHub Sponsors is also available at https://github.com/sponsors/cobymyers if the maintainer prefers a direct one-time sponsor route.

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