Skip to content

Ignore wikilink markers overlapping inline code#458

Open
sk8kpwhrjt-creator wants to merge 1 commit into
Feel-ix-343:mainfrom
sk8kpwhrjt-creator:codex/filter-inline-code-overlap-269
Open

Ignore wikilink markers overlapping inline code#458
sk8kpwhrjt-creator wants to merge 1 commit into
Feel-ix-343:mainfrom
sk8kpwhrjt-creator:codex/filter-inline-code-overlap-269

Conversation

@sk8kpwhrjt-creator

Copy link
Copy Markdown

Fixes #269

/claim #269

Summary

  • add a range-overlap helper so references that touch inline or fenced code spans can be filtered when references_in_codeblocks is disabled
  • filter references by overlap with code spans instead of only full containment, which removes the false wikilink created by literal inline-code [[ and ]] markers
  • keep adjacent real wikilinks intact with a regression test

Verification

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

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