diff --git a/README.md b/README.md index 6c648b3..0c240ce 100755 --- a/README.md +++ b/README.md @@ -1 +1,64 @@ # mathml-to-latex + +It converts [MathML](https://en.wikipedia.org/wiki/MathML) to [LaTeX](https://pt.wikipedia.org/wiki/LaTeX). + +## Instalation + +If you use NPM + +``` +npm install mathml-to-latex --save +``` + +If you use Yarn + +``` +yarn add mathml-to-latex +``` + +## Usage + +```javascript +const Mathml2latex = require('mathml-to-latex'); + +const mathml = ` + + + a + + + b + + + `; + +Mathml2latex.convert(mathml); +// => a + b +``` + +```javascript +const Mathml2latex = require('mathml-to-latex'); + +const mathml = ` + + + A + = + + + + x + y + + + z + w + + + + + + `; + +Mathml2latex.convert(mathml); +// => A = \begin{bmatrix} x & y \\ z & w \end{bmatrix} +```