Skip to content

feat: Subsection anchor links with :target highlighting#135

Merged
williamzujkowski merged 1 commit into
mainfrom
feat/131-subsection-anchors
Apr 1, 2026
Merged

feat: Subsection anchor links with :target highlighting#135
williamzujkowski merged 1 commit into
mainfrom
feat/131-subsection-anchors

Conversation

@williamzujkowski
Copy link
Copy Markdown
Collaborator

Deep-link to subsections: #subsec-a, #subsec-a-1. Gold highlight on arrival. Closes #131.

Inline script assigns IDs to subsection list items:
- (a) → #subsec-a
- (a)(1) → #subsec-a-1
- (a)(A) → #subsec-a-A

Enables deep-linking: /statute/.../section-111/#subsec-b

CSS :target highlighting:
- Gold background flash when arriving via anchor link
- scroll-margin-top for sticky header clearance
- Dark mode compatible

Closes #131

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@williamzujkowski williamzujkowski merged commit 3607e15 into main Apr 1, 2026
@williamzujkowski williamzujkowski deleted the feat/131-subsection-anchors branch April 1, 2026 01:56
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.

feat: Subsection anchor links with :target highlighting

1 participant