gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
164 stars 31 forks source link

Transform Mathematical into a class #41

Closed gjtorikian closed 9 years ago

gjtorikian commented 9 years ago

I've long though that the format for Mathematical as a module made no sense. Mathematical::Render.new.render is unnecessarily convoluted; Mathematical.new.render is just as fine.

This PR moves Mathematical up as a class. It'll be a breaking (1.0.0) change. I'll release the gem when other downstream mtex2mml changes get made to support more of MathJax.