You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.97.0-DEV-9e360d3844f5077c65649e4c9c98f5cbd1c3efc0
Does this issue reproduce with the latest release?
Yes
This issue probably stems from Goldmark's Footnote extension. But I am opening the issue here first as it was found through Hugo.
Issue
When there are multiple references to the same footnote, the generated <sup> elements for backreferences from the footnote are generated with the same id. This prevents a user to jump back to each of those references separately from the footnote.
The generated HTML page also shows "Duplicate ID" errors on the HTML Validator site.
Recipe to reproduce the issue
something[^fn:1]
something[^fn:1]
something[^fn:1][^fn:1]: footnote text
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
This issue probably stems from Goldmark's Footnote extension. But I am opening the issue here first as it was found through Hugo.
Issue
When there are multiple references to the same footnote, the generated
<sup>
elements for backreferences from the footnote are generated with the sameid
. This prevents a user to jump back to each of those references separately from the footnote.The generated HTML page also shows "Duplicate ID" errors on the HTML Validator site.
Recipe to reproduce the issue
More Info
The Goldmark Footnote extension is inspired from the PHP Markdown Extra - Footnotes extension.
When the above snippet is pasted in the PHP Markdown dingus, we not see this issue of Duplicate IDs:
Note that the points from where the same footnote is referenced shows unique IDs:
fnref:fn:1
,fnref2:fn:1
,fnref3:fn:1
References
The text was updated successfully, but these errors were encountered: