1
0
Fork 0

more complete example

This commit is contained in:
Waylon Flinn 2016-03-11 09:37:47 -06:00
parent 3fcb5615f9
commit 4ed1a48268
2 changed files with 5 additions and 2 deletions

View file

@ -28,6 +28,9 @@ var md = require('markdown-it')(),
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:

View file

@ -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": {