@texmorph/mathjax
v0.1.0
Published
MathJax (SVG) renderer for texmorph and createMorph().
Downloads
186
Maintainers
Readme
@texmorph/mathjax
MathJax 4 (SVG output) renderer for texmorph: seekable formula morphing.
Install
npm install @texmorph/mathjax @mathjax/src @mathjax/mathjax-newcm-fontUsage
import { createMorph } from '@texmorph/mathjax';
const morph = await createMorph(
container,
{ latex: String.raw`\int_0^1 x\,dx`, displayMode: true },
{ latex: String.raw`\left[\frac{x^2}{2}\right]_0^1`, displayMode: true },
);
morph.render(0.5);Requires @mathjax/src ^4.1.3. Font ranges load lazily as formulas need them.
Documentation
License
MIT
