The MathJax library to convert TeX to MML
npm install tex-to-mmlcli
npm install tex-to-mml --save
`
Examples
$3
`js
const TeXToMML = require("tex-to-mml");
const myTeXEquation = "\\frac{n!}{k!(n-k)!} = \\binom{n}{k}";
const MMLEquation = TeXToMML(myTeXEquation); // returns `
$3
`ts
import TeXToMML from "tex-to-mml";
const myTeXEquation = "\\frac{n!}{k!(n-k)!} = \\binom{n}{k}";
const MMLEquation = TeXToMML(myTeXEquation); // returns `
Documentation
TeXToMML(equation) : string _The returned Mathematical Markup Language equation_
> equation : string _The TeX equation_
Notes
$3
This wrapper is inspired by this project : https://github.com/mathjax/MathJax-demos-node/tree/master/direct.
$3
You DON'T have to install any types @types/tex-to-mml`.