This looks like it just shells out[1] to a local executable.
It'd be remiss not to mention my own Ruby gem, https://github.com/gjtorikian/mathematical. It does La/TeX conversions by wrapping C code, though admittedly, it only converts the math portions.
[1]: https://github.com/Authorea/latexml-ruby/blob/798795f0631a29...