zachleat

zachleat/heading-anchors

Adds and positions sibling anchor links for heading elements (h1–h6) when they have an `id` attribute.

JavaScript
37
3
MIT License

This web component automatically adds and positions sibling anchor links for heading elements (h1–h6) when they have an `id` attribute, inspired by David Darnes' implementation. It's designed for developers building accessible documentation or article sites who want to preserve heading text as selectable content while providing easy navigation links without nesting them inside headings. The component supports CSS Anchoring API, automatic font matching, and includes options for custom selectors, internationalization, and styling.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

zachleat's profile
zachleat
22 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet