Skip to content

fix: accept github line anchors on markdown link targets - #986

Merged
Colin Francis (colifran) merged 3 commits into
langchain-ai:mainfrom
drakeo338:claude/983-fix
Oct 6, 2026
Merged

Colin Francis (colifran) merged 3 commits into
langchain-ai:mainfrom
drakeo338:claude/983-fix

Conversation

@drakeo338

Copy link
Copy Markdown
Contributor

Refs #983.

Covers the item about GitHub line anchors (#L10, #L10-L20) on Markdown link targets being reported as broken.

The wiki link validator treated any #fragment on a .md target as a heading anchor, so a link like file.md#L10-L20 was stamped broken because no such heading exists. It now skips GitHub line anchors on Markdown targets, while real heading anchors are still validated. Added a test covering both cases and a changeset.

The link validator treated #L10 or #L10-L20 on a .md target as a heading
anchor and stamped the link as broken. Skip line anchors there; real
heading anchors are still checked.

Fixes langchain-ai#983
@changeset-bot

changeset-bot Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a3aaffe

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

@colifran Colin Francis (colifran) changed the title fix: accept GitHub line anchors on Markdown link targets fix: accept github line anchors on markdown link targets Oct 6, 2026

@colifran Colin Francis (colifran) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colifran
Colin Francis (colifran) merged commit dcf2cc5 into langchain-ai:main Oct 6, 2026
11 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 6, 2026
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.

2 participants