Skip to content

Handle hrefs in textRefs - #267

Merged
JayPanoz merged 2 commits into
developfrom
gnd-href-textrefs
Oct 2, 2026
Merged

JayPanoz merged 2 commits into
developfrom
gnd-href-textrefs

Conversation

@JayPanoz

@JayPanoz JayPanoz commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

We need this for reconstructing sentences across iframes then highlighting, etc.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Protocol-relative href handling must be corrected before approval.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds resource-aware href handling for Guided Navigation references, enabling cross-iframe sentence reconstruction and highlighting.

Changes:

  • Resolves text and media references against an input href.
  • Supports href-qualified textref decoding and range validation.
  • Updates tests, documentation, changelog, and package version.
File Summary
guided-navigation/​test/​textref.test.ts Tests href resolution and decoding.
guided-navigation/​src/​textrefFragment.ts Supports href-qualified textrefs.
guided-navigation/​src/​options.ts Adds the href option.
guided-navigation/​src/​href.ts Adds reference resolution utilities.
guided-navigation/​src/​converter.ts Applies href resolution.
guided-navigation/​README.md Documents href behavior.
guided-navigation/​package.json Bumps the package version.
guided-navigation/​CHANGELOG.MD Records the release changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread guided-navigation/src/href.ts
@JayPanoz
JayPanoz added this pull request to the merge queue Oct 2, 2026
Merged via the queue into develop with commit ca428e3 Oct 2, 2026
6 checks passed
@JayPanoz
JayPanoz deleted the gnd-href-textrefs branch October 2, 2026 12:24
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