Skip to content

Fix bare-path guard to exclude single-segment sibling references - #24

Merged
larkiny merged 1 commit into
mainfrom
fix/bare-path-sibling-guard
Feb 16, 2026
Merged

Fix bare-path guard to exclude single-segment sibling references#24
larkiny merged 1 commit into
mainfrom
fix/bare-path-sibling-guard

Conversation

@larkiny

@larkiny larkiny commented Feb 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Single-segment bare paths like page-b.md are sibling-file references that need normalizePath() to resolve correctly
  • The bare-path pre-normalization check now requires at least one / to distinguish repo-root-relative paths (docs/markdown/autoapi/foo/) from sibling references
  • Adds regression test for single-segment bare-path sibling references with .md-stripping global mappings
  • Bumps version to 0.14.4

Test plan

  • New test: page-b.md#section resolves via sourceToTargetMap (not early-returned)
  • Existing bare-path test still passes (multi-segment paths with / are unaffected)
  • Existing ./ and ../ regression tests still pass
  • All 303 tests pass
  • tsc --noEmit clean

Single-segment bare paths like "page-b.md" are sibling-file references
that need normalizePath() to resolve. The bare-path pre-normalization
check now requires at least one "/" to distinguish repo-root-relative
paths (docs/markdown/autoapi/foo/) from sibling references.

Bumps version to 0.14.4.
@larkiny
larkiny merged commit fc6bdeb into main Feb 16, 2026
1 check passed
@larkiny
larkiny deleted the fix/bare-path-sibling-guard branch February 16, 2026 22:38
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