Skip to content

Generate clickable anchors for headers #700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
0x009922 opened this issue Feb 25, 2025 · 0 comments
Open

Generate clickable anchors for headers #700

0x009922 opened this issue Feb 25, 2025 · 0 comments

Comments

@0x009922
Copy link

It would be great to generate clickable anchors alongside the headers

For example, instead of

<h2 id="limitations">Limitations</h2>

generate

<h2 id="limitations" tabindex="-1">
  Limitations
  <a class="header-anchor"
     href="#limitations"
     aria-label="Permalink to &quot;Limitations&quot;"></a>
</h2>

Where <a> is rendered as e.g. an appearing # at the least from the header.

(got this particular format from VitePress).

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

No branches or pull requests

1 participant