Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.84k stars 560 forks source link

Multiple References to the Same Footnote Results in Duplicate Footnotes #3230

Open thabotswana opened 4 months ago

thabotswana commented 4 months ago

Expected

When referencing the same footnote more than once, both references should point to the same footnote.

Observed

When referencing the same footnote more than once, a duplicate footnote is created. Reported here: https://forums.simplenote.com/forums/topic/multiple-references-to-the-same-footnote-results-in-duplicate-footnotes/?view=all#post-2826

Reproduced

I can reproduce this with the following steps:

  1. Open a note
  2. Add text with Markdown formatting for footnotes (e.g [^1], [^2])
  3. Publish note
  4. View the published note

Screen recording

https://github.com/Automattic/simplenote-electron/assets/35628116/070bbffb-d448-4a12-9387-945fae05aa74

Where did you see the bug