zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
226 stars 53 forks source link

[zmarkdown] Fix footnotes random postfix (the return) #432

Closed StaloneLab closed 3 years ago

StaloneLab commented 3 years ago

Followup PR for #431 : we were not regenerating postfixes for footnotes at all, now we are regenerating them too much, causing the reference to not match the definition.

Because that issue was too stupid to happen again, I added a test to check three things:

Introducing that global variable inside the configuration file should not be a problem with multi-instances, because everything is kept separately (I checked it).