Skip to content

Fix anchor navigation in preview: add heading IDs and intercept #frag…#78

Merged
mcgivrer merged 2 commits into
developfrom
bug/html_anchors
May 18, 2026
Merged

Fix anchor navigation in preview: add heading IDs and intercept #frag…#78
mcgivrer merged 2 commits into
developfrom
bug/html_anchors

Conversation

@jib63
Copy link
Copy Markdown
Collaborator

@jib63 jib63 commented May 17, 2026

…ment clicks (issue #73)

  • Add processHeadingIds() to inject GitHub-style id attributes on

    -

    tags so that #fragment anchors have a target element to scroll to
  • Intercept #fragment navigation in the SCHEDULED state listener: cancel the full page reload and use scrollIntoView() via executeScript instead, preventing flicker and correctly scrolling to the heading

…ment clicks (issue #73)

- Add processHeadingIds() to inject GitHub-style id attributes on <h1>-<h6>
  tags so that #fragment anchors have a target element to scroll to
- Intercept #fragment navigation in the SCHEDULED state listener: cancel the
  full page reload and use scrollIntoView() via executeScript instead,
  preventing flicker and correctly scrolling to the heading

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jib63 jib63 requested a review from mcgivrer May 17, 2026 10:23
@mcgivrer mcgivrer merged commit f672751 into develop May 18, 2026
1 check passed
@jib63 jib63 deleted the bug/html_anchors branch May 18, 2026 20:36
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