oncomouse / jquery-inline-footnotes

jQuery plugin to create inline plugins from Markdown-created HTML footnotes.
BSD 2-Clause "Simplified" License
11 stars 0 forks source link

Multiple texts with footnotes on the same page? #2

Open bichonnages opened 7 years ago

bichonnages commented 7 years ago

Hello! I was wondering if it would be easy to implement the possibility of having multiple texts with footnotes on the same page? So far, it works great but only if the numbering of the footnotes does not reset with the different block of texts. For example, if I use two texts with 3 footnotes each and if their footnotes have the same numbers (1, 2, 3), your script grab the footnotes' content of the first text (footnote #1 of text #2 get footnote #1 content of text #1, in other words). Thx for the help! Best MB

oncomouse commented 7 years ago

Could you link or attach an example of the HTML you are trying to get this working on? I ask because the HTML may be malformed. The script works by linking <sup> elements which have unique IDs to particular footnotes. If two <sup> elements have the same ID, the script may behave the way you describe, but that is illegal HTML (two elements shouldn't have the same ID for this exact reason). If that's not the issue, then there may be things to be done. I'd have to see the HTML in question.