Extends mathjs http://mathjs.org/ library by providing the handler for producing content MathML https://www.w3.org/Math/
npm install mathjs-mathml
const { create, all } = require('mathjs');
const math = create(all);
const { cMathMLHandler } = require('mathjs-mathml');
let mathml = math
.parse('x*sin(y/z)')
.toString(cMathMLHandler);
console.log(mathml);
- Evgeny Metelkin @metelkin
- Viktoria Tkachenko @vetedde
InSysBio, Moscow, 2017-2024 http://insysbio.com