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

Recognize IDs added by markdown-it-attrs #38

Closed
mathiasbynens opened this issue Jan 21, 2019 · 2 comments
Closed

Recognize IDs added by markdown-it-attrs #38

mathiasbynens opened this issue Jan 21, 2019 · 2 comments

Comments

@mathiasbynens
Copy link

markdown-it-attrs makes it possible to define custom slugs for headers. For example,

# This is an example header { #foo-bar }

…becomes…

<h1 id="foo-bar">This is an example header</h1>

Is there a way to make markdown-it-table-of-contents recognize these pre-existing header IDs instead of making up its own?

@martinlissmyr
Copy link
Collaborator

Hi, unfortunately I don't have time to look into this at the moment... If you or anyone else feels like trying it out and see if they can figure it out it's most welcome...

@martinlissmyr
Copy link
Collaborator

Closing as noone seems to want to do a fix for it. If you create a with PR with the necessary fixes I'd accept it.

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

2 participants