Skip to content

feat: add permalink anchors to README headings#226

Merged
jedsundwall merged 4 commits intomainfrom
feature/readme-permalinks
Feb 14, 2026
Merged

feat: add permalink anchors to README headings#226
jedsundwall merged 4 commits intomainfrom
feature/readme-permalinks

Conversation

@jedsundwall
Copy link
Contributor

Summary

Adds permalink functionality to README headings, allowing users to link directly to specific sections.

Changes

  • Created HeadingWithPermalink component with hover-visible link icons
  • Updated all heading levels (h1-h6) in MarkdownViewer to include permalinks
  • Added simple CSS for hover behavior with icon scaling based on heading size

Behavior

  • Link icon appears on the right of headings when hovering
  • Clicking the icon navigates to that section (updates URL hash)
  • Icon size scales proportionally with heading font size
  • Uses Radix UI's Link2Icon for consistency

Testing

Tested on local README pages - hover over any heading to see the link icon, click to navigate.

Closes #166

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Feb 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
source-cooperative Ready Ready Preview, Comment Feb 14, 2026 3:25pm

Request Review

jedsundwall and others added 3 commits February 13, 2026 16:00
- Position anchors to the right of headings (Radix style)
- Use padding-right to reserve space, preventing text reflow
- Icon appears on hover with smooth opacity transition
- Add test page with various heading lengths
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jedsundwall jedsundwall merged commit 04c8082 into main Feb 14, 2026
4 checks passed
@jedsundwall jedsundwall deleted the feature/readme-permalinks branch February 14, 2026 15:25
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.

[Proposed Feature] Permalinks in README's

1 participant