Skip to content

Move heading # symbol after text, show on hover with animation#308

Merged
simonhamp merged 3 commits intomainfrom
remove-heading-hash-symbol
Mar 29, 2026
Merged

Move heading # symbol after text, show on hover with animation#308
simonhamp merged 3 commits intomainfrom
remove-heading-hash-symbol

Conversation

@simonhamp
Copy link
Copy Markdown
Member

@simonhamp simonhamp commented Mar 29, 2026

Summary

  • Moves the # anchor link from before heading text to after it
  • Hidden by default, fades in and slides right on heading hover (200ms ease-out)
  • Updates plugin TOC regex to strip trailing # instead of leading
  • Adds feature tests for HeadingRenderer behavior

Test plan

  • Feature tests pass for heading anchor placement, classes, IDs, and level filtering
  • Visually verify # appears after heading text on hover on docs, plugin, and article pages
  • Verify plugin table of contents still populates correctly

🤖 Generated with Claude Code

@simonhamp simonhamp marked this pull request as ready for review March 29, 2026 13:59
@simonhamp simonhamp merged commit 49d0c12 into main Mar 29, 2026
2 checks passed
@simonhamp simonhamp deleted the remove-heading-hash-symbol branch March 29, 2026 14:18
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