Skip to content

Commit

Permalink
docs: update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
asnunes committed Aug 13, 2023
1 parent 16ff2d3 commit 4f63ad8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

It converts [MathML](https://en.wikipedia.org/wiki/MathML) to [LaTeX](https://pt.wikipedia.org/wiki/LaTeX).

## Instalation
## Installation

If you use NPM

Expand All @@ -19,7 +19,8 @@ yarn add mathml-to-latex
## Usage

```javascript
const Mathml2latex = require('mathml-to-latex');
import { Mathml2latex } from 'mathml-to-latex';
// const { Mathml2latex } = require('mathml-to-latex');

const mathml = `
<math>
Expand All @@ -36,7 +37,8 @@ Mathml2latex.convert(mathml);
```

```javascript
const Mathml2latex = require('mathml-to-latex');
import { Mathml2latex } from 'mathml-to-latex';
// const { Mathml2latex } = require('mathml-to-latex');

const mathml = `
<math>
Expand Down

0 comments on commit 4f63ad8

Please sign in to comment.