erusev / parsedown-extra

Markdown Extra Extension for Parsedown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset footnoteCount variable between text() calls

ambroisemaupate opened this issue · comments

If you are using text() method multiple times with the same object, variable $this->footnoteCount is not reset with DefinitionData array. So it creates an offset between .footnote-ref actual text and the .footnotes > li count.

I just hit this today — goodbye to a chunk of time till I realized what was happening.