latextomathml
There is only one API function:
LaTeXtoMathML(String)
/////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////Nodejs//////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////// A javascript library for converting LaTeX equations to MathML
if you run it in Nodejs environment��Execute the following command��
npm install latextomathml
example:
var Translator=require("latextomathml");
var mathmlstr=Translator.LaTeXtoMathML("\sqrt{x}");
console.log(mathmlstr);
//you will get x
/////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////web browser side///////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
if you run it in web browser environment��
example:
var mathmlstr=LaTeXtoMathML("\sqrt{x}");
console.log(mathmlstr);
//you will get x