bent10/marked-extensions

Multiple references to the same footnote not behaving as expected

Closed this issue · 0 comments

  • Extension Name: marked-footnote
  • Extension Version: 1.2.3
  • Project Version: NodeJs
  • Device: Desktop
  • 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.

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