Skip to content

Commit

Permalink
Merge pull request #9 from nayunhwan/master
Browse files Browse the repository at this point in the history
Adjust readme
  • Loading branch information
blaiprat committed Mar 23, 2018
2 parents 00681ef + ac3784a commit fc49ab8
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions README.md
Expand Up @@ -12,6 +12,19 @@ $ npm install --save react-latex

In javascript

### Before using Latex
Include in your html Katex CSS

```html
<html>
<head>
<link href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css" rel="stylesheet">
</head>
</html>
```

### Inline Latex

```js
var Latex = require('react-latex');

Expand All @@ -26,16 +39,25 @@ var Latex = require('react-latex');
...
```

Include in your html Katex CSS

```html
<html>
<head>
<link href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css" rel="stylesheet">
</head>
</html>
### Block Latex

```js
var Latex = require('react-latex');

...
render(){
return (
<h3>
<Latex displayMode={true}>$$(3\times 4) \div (5-3)$$</Latex>
</h3>
);
}
...
```



## License

MIT © [Zzish](http://www.zzish.com)
Expand Down

0 comments on commit fc49ab8

Please sign in to comment.