Skip to content

Conversation

@normenmueller
Copy link
Contributor

fix/angle-brackets

Link Resolution Follow‑ups

Tightens link parsing and display resolution after the initial angle‑bracket support. Anchors are stripped for file resolution while still preserved for navigation, and relative project links resolve against the source file where possible.

Examples (illustrative):

  • [My Note](Folder/My Note.md#Section) resolves to Folder/My Note.md for lookup, but still opens #Section.
  • [[Folder/My Note#Section]] displays as My Note while keeping the fragment for navigation.
  • Relative project links display the correct title when resolved from the task's path.

Changelog

  • Strip #heading / ^block fragments when resolving link paths.
  • Preserve fragments for navigation and hover in linkRenderer.
  • Resolve project display names using sourcePath where available.
  • Pass sourcePath through stats/filter helpers for consistent relative link handling.

Tests

  • ./node_modules/.bin/jest tests/unit/utils/linkUtils.test.ts --runInBand
  • ./node_modules/.bin/jest tests/unit/ui/linkRenderer.test.ts --runInBand

cf. PR.md

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