OS@version (or Browser): Windows 11, Chrome Version 128.0.6613.86
Node And NPM Version: 20.10.0
Description
When referencing the same footnote multiple times, the links created only seem to work correctly when ordered sequentially. If the same footnote is referenced again after a different one has been declared, the link is incorrect.
In the reproduction example "Impressive Game Day Entertainment" should have the footnote link [1:2] instead of [2:2] as it references the first footnote.
Actual Behavior
In the reproduction example "Impressive Game Day Entertainment" has the footnote link [2:2] even though it doesn't reference the second footnote.
Description
When referencing the same footnote multiple times, the links created only seem to work correctly when ordered sequentially. If the same footnote is referenced again after a different one has been declared, the link is incorrect.
To Reproduce (⚠️ read below)
Codesandbox link
Expected Behavior
In the reproduction example "Impressive Game Day Entertainment" should have the footnote link
[1:2]
instead of[2:2]
as it references the first footnote.Actual Behavior
In the reproduction example "Impressive Game Day Entertainment" has the footnote link
[2:2]
even though it doesn't reference the second footnote.Additional Information