Skip to content

Resolve file and directory references relative to the referencing file - #318

Closed
stepchowfun wants to merge 2 commits into
mainfrom
relative-file-refs
Closed

stepchowfun wants to merge 2 commits into
mainfrom
relative-file-refs

Conversation

@stepchowfun

Copy link
Copy Markdown
Owner

File and directory references ([file:...] and [dir:...]) are now resolved relative to the directory containing the file where the reference originates. Paths that start with / (e.g., [file:/CHANGELOG.md]) are resolved relative to the project root. Previously, paths were relative to the project root unless they started with . or ...

This is a breaking change for references to root-relative paths from files in subdirectories. Those references need a leading /. This PR also bumps the version to 1.15.0.

Status: Ready

Fixes: N/A

Paths are now relative to the directory containing the file where the
reference originates. Paths that start with / are relative to the
project root.
@stepchowfun
stepchowfun deleted the relative-file-refs branch September 24, 2026 04:31
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