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

Generated id values are not inique #6

Open
SAKryukov opened this issue Jul 14, 2017 · 0 comments
Open

Generated id values are not inique #6

SAKryukov opened this issue Jul 14, 2017 · 0 comments

Comments

@SAKryukov
Copy link

To reproduce, use the following input Markdown:

Header A

Header A

[ end of Markdown sample ]

It will generate two identical id values, which makes HTML invalid.

Reason: bugs in index.js. First of all, var used_headers = {} is placed inside the body of the function md.renderer.rules.heading_open, it makes the used header set empty on every heading, effectively turning off uniqueness mechanism. slugify also can be fixed.

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