Skip to content
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

Feature: Render Heading anchors like on GitHub and NPMjs #134

Open
bradleyburgess opened this issue Apr 25, 2022 · 0 comments
Open

Feature: Render Heading anchors like on GitHub and NPMjs #134

bradleyburgess opened this issue Apr 25, 2022 · 0 comments

Comments

@bradleyburgess
Copy link

If you create a README in a GitHub repo or your NPM package, anchors are automatically generated from your headings. This allows you to create a TOC which links to the various sections in your readme.

E.g.:

# My Heading

Lorem ipsum...

will result in this HTML:

<h1 id="my-heading">My Heading</h1>
<p>Lorem ipsum...</p>

Unfortunately, TOC links on npmtrends.com are broken.

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