1.1.17 • Published 1 year ago

@androettop/mathml2latex v1.1.17

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

mathml2latex

It's a javascript library to convert mathML to latex

Build

Clone this repo and run npm run build, It'll generate belowing files:

lib
├── mathml2latex.browser.cjs.js
├── mathml2latex.browser.es.js
├── mathml2latex.browser.umd.js
├── mathml2latex.cjs.js
├── mathml2latex.es.js
└── mathml2latex.umd.js
dist
└── mathml2latex.js

usage

load library

In browser environment, you need to build the library first, then load it:

<script src="dist/mathml2latex.js"></script>

Using with npm

npm install mathml2latex
const MathMl2LaTeX = require('mathml2latex')

convert mathml html

const mathmlHtml = '<math display="block"><mfrac><mi>a</mi><mi>b</mi></mfrac></math>';
const latex = MathML2LaTeX.convert(mathmlHtml); // => \frac{a}{b}
1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago