Skip to content

Add inline reference previews - #177

Draft
HamptonMakes wants to merge 4 commits into
mainfrom
hampton/reference-previews
Draft

Add inline reference previews#177
HamptonMakes wants to merge 4 commits into
mainfrom
hampton/reference-previews

Conversation

@HamptonMakes

@HamptonMakes HamptonMakes commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Why

Agents currently write footnote citations and § section references that look meaningful but either require readers to jump away from their place or have no link semantics at all. Auto-extracted source links also duplicate the document’s numbered citations in back matter.

What

  • Preview footnote citations and explicitly linked numbered sections on hover or keyboard focus
  • Follow the original reference immediately on click
  • Keep auto-extracted links as discovery metadata without repeating them; show only separately curated Related resources
  • Teach agents when to use citations, internal links, and structured reference metadata
  • Cover rendering and interactions with helper, request, and system specs

Risk Assessment

Low to medium — this changes Markdown rendering and plan-page interactions, but only footnotes and valid explicit section links opt into previews. Bare section symbols remain unchanged, and extracted reference records remain available through the API.

Screenshots

Citation preview on hover

Citation preview on hover

Internal section preview on hover

Internal section preview on hover

Canonical references without duplicated extracted links

Canonical references and related resources

Generated with Amp

HamptonMakes and others added 4 commits August 15, 2026 11:37
Connect footnote citations and explicit section links to instant hover and click previews, and document the authoring contract for agents.

Amp-Thread-ID: https://ampcode.com/threads/T-01a00633-0812-75de-9a33-a2283280078f
Co-authored-by: Amp <amp@ampcode.com>
Let reference clicks jump directly to their targets, keep previews on hover and focus, and avoid repeating auto-extracted citation links in back matter.

Amp-Thread-ID: https://ampcode.com/threads/T-01a00633-0812-75de-9a33-a2283280078f
Co-authored-by: Amp <amp@ampcode.com>
Keep hover cards clear of the document's overflow boundary while retaining direct click navigation to each reference target.

Amp-Thread-ID: https://ampcode.com/threads/T-01a00633-0812-75de-9a33-a2283280078f
Co-authored-by: Amp <amp@ampcode.com>
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