svgtex
======
Using MathJax and PhantomJS to create SVGs and MathML on server side with minimum overhead.
MathJax is a great tool! Why not use it on a server side too?
To avoid loading whole phantomjs and MathJax into memory with every call the service is exposed via HTTP.
```
$ phantomjs main.js &
loading bench page
server started on port 16000
you can hit server with http://localhost:16000/?2^n
.. or by sending latex source in POST (not url encoded)
```
And then .. curl it up to get back a json array that contains SVG and MathML
```
$ curl localhost:16000/?aa=a^2
aa=a^2.. 6B query, OK 2393B result, took 15ms.
{"tex":"aa=a^2","svg":"","mml":""}
```
Stability
---------
experimental.
Read https://github.com/agrbin/svgtex/wiki for more details!
Forked from https://github.com/agrbin/svgtex