Skip to content

Ignore inline-code wikilink markers when parsing references#442

Open
unworthyzeus wants to merge 1 commit into
Feel-ix-343:mainfrom
unworthyzeus:unworthyzeus/ignore-inline-code-brackets
Open

Ignore inline-code wikilink markers when parsing references#442
unworthyzeus wants to merge 1 commit into
Feel-ix-343:mainfrom
unworthyzeus:unworthyzeus/ignore-inline-code-brackets

Conversation

@unworthyzeus
Copy link
Copy Markdown

Summary

  • treat references as inside code when they overlap an inline or fenced code span, not only when fully contained
  • add regression coverage for the reported [[ / ]] inline-code marker case while keeping normal wikilinks outside code active

Why
Reference::new() can regex-match from an inline-code [[ marker to a later inline-code ]] marker, producing a false unresolved wikilink. The vault-level code filtering previously only removed references fully contained by one code span, so this cross-span false positive survived.

Testing

  • cargo test vault::vault_tests
  • cargo test

/claim #269

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.

1 participant