Skip to content
Snippets Groups Projects
Commit d459dec0 authored by Waylon Flinn's avatar Waylon Flinn
Browse files

how to set up the plugin

parent fa076fb4
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,13 @@ KaTeX is fast. This plugin makes it easy to support it in your markdown. ...@@ -10,6 +10,13 @@ KaTeX is fast. This plugin makes it easy to support it in your markdown.
npm install markdown-it-katex npm install markdown-it-katex
``` ```
```javascript
var md = require('markdown-it')(),
mk = require('markdown-it-katex');
md.use(mk);
```
Include the KaTeX stylesheet in your html: Include the KaTeX stylesheet in your html:
```html ```html
<link rel="stylesheet"href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css"> <link rel="stylesheet"href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css">
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment