-
-
Notifications
You must be signed in to change notification settings - Fork 788
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
Footnotes that share the same ID are duplicated #3690
Comments
I have tried this example in all versions of Asciidoctor and it doesn't work in any version. However, a case could be made that if the ID is specified, and a footnote is already registered with that ID, the parser should not create another footnote (effectively ignoring the text in the second instance, regardless of whether it's the same). So let's address this as a bug. |
For the record, this has nothing to do with externalizing the footnote (though it's easy to reproduce that way). |
…te is already registered with that ID
This still happens if you don't give the footnote an explicit id. If you change
You get this: Using 2.0.12:
|
The |
Yep. |
According to Externalizing a Footnote, you should be able to create a footnote as an attribute, and then call the attribute to be able to reuse a footnote:
However, this does not appear to be working. Using the text from the docs example:
The result I get has the first use of fn-disclaimer as footnote 2, and the second use as footnote 3:
I feel like this used to work. I've tried this in Antora, and also Asciidoctor.js, using the latest LTS for node and npm (12.18.1 and 6.14.5, respectively).
The text was updated successfully, but these errors were encountered: