mathjax / MathJax-node

MathJax for Node
Apache License 2.0
615 stars 97 forks source link

Fixed bug with equation numbers not resetting to 0 #258

Closed CemraJC closed 8 years ago

CemraJC commented 8 years ago

If typeset() was called multiple times without a call to start() in between, the equation numbering does not reset to 0. Unfortunately, always calling start() causes undefined behaviour.

In my tests for gulp-mathjax-node, I found this was an issue with the mj-page.js file.

Admittedly, this is a very hard-to-spot error :smile:

pkra commented 8 years ago

Thanks for spotting this! I'm closing this for two technical reasons. One the one hand, PRs need to be made to the develop branch. On the other hand, develop no longer has mj-page in it; see #206 for more information.