Skip to content

Fix PDF annotation matching across Markdown and line wraps - #66

Merged
tenglvjun merged 2 commits into
mainfrom
codex/fix-pdf-annotation-matching
Aug 15, 2026
Merged

Fix PDF annotation matching across Markdown and line wraps#66
tenglvjun merged 2 commits into
mainfrom
codex/fix-pdf-annotation-matching

Conversation

@tenglvjun

Copy link
Copy Markdown
Owner

Summary

  • normalize parenthesized LaTeX relations and escaped Markdown percentages against PDF text
  • resolve lexical and discretionary line-end hyphens independently for each occurrence while preserving exact source rectangles
  • retain conservative ambiguity handling across forward matching, stored sort indexes, and folded context disambiguation

Cache compatibility

  • bump the PDF text index profile from text-v8 to text-v9 so existing indexes rebuild under the updated normalization rules

Verification

  • replayed the three reported NExT annotations against the real cached PDF index: pages 4, 5, and 6 with 11, 9, and 8 rectangles
  • npm run check
  • npm test (1168 passing)
  • npm run build

@tenglvjun
tenglvjun merged commit 6e4b721 into main Aug 15, 2026
3 checks passed
@tenglvjun
tenglvjun deleted the codex/fix-pdf-annotation-matching branch August 15, 2026 15:34
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