Skip to content

fix: resolve root-relative markdown links in generated wiki pages - #608

Open
Anubhab Pradhan (ANUBprad) wants to merge 1 commit into
langchain-ai:mainfrom
ANUBprad:fix-relative-markdown-links
Open

fix: resolve root-relative markdown links in generated wiki pages#608
Anubhab Pradhan (ANUBprad) wants to merge 1 commit into
langchain-ai:mainfrom
ANUBprad:fix-relative-markdown-links

Conversation

@ANUBprad

Copy link
Copy Markdown

Summary

Fix inconsistent handling of root-relative Markdown links.

Changes

  • Update the generation prompt to emit relative Markdown links instead of root-relative links.
  • Preserve compatibility with previously generated root-relative links in the visualizer graph.
  • Improve internal link validation for root-relative paths.
  • Fix Windows CRLF bookkeeping that incorrectly reported stamped files.
  • Add regression tests covering graph resolution and link validation.

Fixes #602

Validation

  • pnpm run typecheck
  • pnpm vitest run test/wiki-link-validator.test.ts
  • pnpm vitest run test/wiki-link-validator-dogfood.test.ts
  • pnpm vitest run test/visualize-graph.test.ts

Note

The existing Mermaid/jsdom timeout failures reproduce on upstream main and are unrelated to this change.

@changeset-bot

changeset-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4baf17f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openwiki Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

Generated page bodies use root-relative links (/src/foo.ts, /openwiki/page.md) that no renderer resolves — including openwiki visualize's own graph

1 participant