more complete example
This commit is contained in:
parent
3fcb5615f9
commit
4ed1a48268
2 changed files with 5 additions and 2 deletions
|
@ -25,9 +25,12 @@ Include it in your javascript
|
|||
|
||||
```javascript
|
||||
var md = require('markdown-it')(),
|
||||
mk = require('markdown-it-katex');
|
||||
mk = require('markdown-it-katex');
|
||||
|
||||
md.use(mk);
|
||||
|
||||
// double backslash is required for javascript strings, but not html input
|
||||
var result = md.render('# Math Rulez! \n $\\sqrt{3x-1}+(1+x)^2$');
|
||||
```
|
||||
|
||||
Include the KaTeX stylesheet in your html:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "markdown-it-katex",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"description": "Fast math support for markdown-it with KaTeX",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Reference in a new issue