-
Notifications
You must be signed in to change notification settings - Fork 188
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
Duplicated section IDs #192
Comments
The converter is simplifying the id that Asciidoctor generators to work with Reveal.js. However, in doing so, it's not checking if the ID it produces has already been used. The relevant code is here: https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/templates/section.html.slim#L5 This is case where support for the ascii-ids attribute could be useful in Asciidoctor core (something AsciiDoc Python supports). I didn't really have a use case for it before, but this would be one such example. |
Upstream fixed hakimel/reveal.js#1230, so we can remove our filter which causes the name collision. This would avoid many of the collisions I believe. Targeting next release for that workaround removal / fix. |
Fixes asciidoctor#192 but also removes our workaround in asciidoctor#150. Test cases from asciidoctor#192 were added. Will impact links because the prepending of `_` is reintroduced on automatically generated links (Asciidoctor's behavior) so CHANGELOG will be explicit about that.
PR submitted: #232 |
Input:
Output:
Probably
hello_
andhello_2
would be better than the doublehello_
.(As a workaround, I add
[id=...]
to the previous line of titles.)The text was updated successfully, but these errors were encountered: