Skip to content

fix(output): broken-anchor marker missing from find text output - #225

Merged
ractive merged 1 commit into
mainfrom
fix/anchor-text-render
Jul 19, 2026
Merged

fix(output): broken-anchor marker missing from find text output#225
ractive merged 1 commit into
mainfrom
fix/anchor-text-render

Conversation

@ractive

@ractive ractive commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • find --broken-links text output rendered anchored links as plainly resolved: the nested links: section in build_file_object_filter has its own jq template, which iter-190 (PR feat(links): broken-anchor detection in find --broken-links (iter-190, L-21) #224) did not update — only the standalone LinkInfo filters got the anchor rendering, so the CHANGELOG's text-output claim was false on the path users actually see.
  • The nested template now appends #fragment to the target and (broken anchor) after the path, matching LINK_INFO_ANCHORED_FILTER.
  • New e2e (anchor_text_output_marks_broken_anchor) asserts the text path — the existing 9 anchor e2e only asserted JSON, which is how this slipped through.

Test plan

  • New e2e: broken anchor marked, resolved anchor not marked, broken target keeps (unresolved) with fragment shown
  • Full workspace suite green (1352+905 tests, 0 failures); fmt + clippy -D warnings clean
  • Live smoke on a scratch vault renders "Foo#Nope" → "Foo.md" (broken anchor)

🤖 Generated with Claude Code

…s' links section

The nested links: renderer in build_file_object_filter had its own jq
template that ignored fragment/broken_anchor, so `find --broken-links`
text output showed anchored links as plainly resolved — contradicting
the iter-190 CHANGELOG claim (which held only for the standalone
LinkInfo filters). Template now appends #fragment and (broken anchor),
kept in sync with LINK_INFO_ANCHORED_FILTER; e2e asserts the text path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ractive
ractive merged commit 50752b2 into main Jul 19, 2026
8 checks passed
@ractive
ractive deleted the fix/anchor-text-render branch July 19, 2026 19:10
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