Skip to content

fix: resolve symlinks when checking markdown link targets#21

Merged
laulauland merged 1 commit intomainfrom
lau/symlink-fix
Apr 14, 2026
Merged

fix: resolve symlinks when checking markdown link targets#21
laulauland merged 1 commit intomainfrom
lau/symlink-fix

Conversation

@laulauland
Copy link
Copy Markdown
Member

Fixes broken link false positives when a doc is a symlink. Before this fix, relative links were resolved from the symlink's directory rather than the real file's directory.

One-line fix in classifyRelativeLink: resolve the doc's real path via realpathAlloc before computing doc_dir.

@laulauland laulauland merged commit 4efdc22 into main Apr 14, 2026
1 check failed
@laulauland laulauland deleted the lau/symlink-fix branch April 14, 2026 09:22
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