mathjs-mathml

Translation of mathjs object to MathML

Usage no npm install needed!

<script type="module">
  import mathjsMathml from 'https://cdn.skypack.dev/mathjs-mathml';
</script>

README

Autotests Coverage Status NPM version GitHub license

mathjs-mathml

Description

Extends mathjs http://mathjs.org/ library by providing the handler for producing content MathML https://www.w3.org/Math/

Installation

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);

Maintainers

  • Evgeny Metelkin @metelkin
  • Viktoria Tkachenko @vetedde

Copyright

InSysBio, Moscow, 2017-2021 http://insysbio.com