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

Plugin always tries to use auto-generated IDs #184

Open
Commenter25 opened this issue Sep 11, 2024 · 0 comments
Open

Plugin always tries to use auto-generated IDs #184

Commenter25 opened this issue Sep 11, 2024 · 0 comments

Comments

@Commenter25
Copy link

This plugin seems to presume the existence of Kramdown auto-generated IDs. These do not exist when Kramdown auto_ids is set to false, or when simply using raw HTML, yet the plugin links to them regardless.

If a custom ID is defined via Kramdown syntax, the plugin will recognize it. Otherwise, it will link to every header despite them having no ID.

With raw HTML, the plugin does not respect any IDs specified, nor the lack of an ID, and just uses an auto-generated name for all of them.

Ideally, it would always use the real IDs for the headers, and if one does not exist, not show the header in the TOC.

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