Skip to content

Commit

Permalink
Update related to new version (#38)
Browse files Browse the repository at this point in the history
* Update related to new version

* Remove module field from package.json

* Update examples to import lib correctly

* Bump example dependency version and remove example package-lock.json
  • Loading branch information
dudko authored and talyssonoc committed Mar 21, 2018
1 parent 8ccdb4c commit b3a1c50
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10,197 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@

```sh
$ npm install react-katex
# or
$ yarn add react-katex
```

## Usage

`react-katex` has two types of math components, `InlineMath` and `BlockMath`.
```jsx
import 'katex/dist/katex.min.css';
import { InlineMath, BlockMath } from 'react-katex';
```

### InlineMath

Expand Down
2 changes: 1 addition & 1 deletion dist/react-katex.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b3a1c50

Please sign in to comment.