README
markdown-it-katex
Add Math to your Markdown
KaTeX is a faster alternative to MathJax. This plugin makes it easy to support in your markdown.
Need convincing?
- Check out the comparative benchmark: KaTeX vs MathJax
Usage
Install markdown-it
npm install markdown-it
Install the plugin
npm install @abreto/markdown-it-katex
Use it in your javascript
var md = require('markdown-it')(),
mk = require('@abreto/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