bent10 / marked-extensions

Marked extensions workspace
https://www.npmjs.com/search?q=keywords:stilearning-marked-extensions
MIT License
32 stars 5 forks source link

Multiple references to the same footnote not behaving as expected #109

Closed ajlond123 closed 2 weeks ago

ajlond123 commented 2 weeks ago

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