
// a simple TeX-input example
var mjAPI = require("mathjax-node");
mjAPI.config({
  MathJax: {
    // traditional MathJax configuration
  }
});
mjAPI.start();

var exMath = `\\begin{array}{\|l\|}
\\text{abcdefghijk} \\\\
1234567890 \\\\
\\text{中华人民共和国} \\\\
\\text{にっぽんこく} \\\\
\\text{대한민국서울} \\\\
\\end{array}`;

mjAPI.typeset({
  math: exMath,
  format: "TeX", // or "inline-TeX", "MathML"
//  mml:true,      // or svg:true, or html:true
  svg:true,
}, function (data) {
//  if (!data.errors) {console.log(data.mml)}
  if (!data.errors) {console.log(data.svg)}
});
