npm.io
0.2.0 • Published 5 years ago

@renovamen/vuepress-plugin-katex

Licence
MIT
Version
0.2.0
Deps
1
Size
9 kB
Vulns
4
Weekly
0
Stars
371

@renovamen/vuepress-plugin-katex

A plugin for for adding KaTeX to VuePress to support mathematical formulas rendering in Markdown. This plugin is based on waylonflinn/markdown-it-katex.

KaTeX is a faster alternative to MathJax (see here).

Here is a list of TeX functions supported by KaTeX.

Demo

 

Usage

Install:

yarn add @renovamen/vuepress-plugin-katex
# or
npm install @renovamen/vuepress-plugin-katex

Enable this plugin in VuePress with KaTeX options:

module.exports = {
  plugins: [
    [
      '@renovamen/vuepress-plugin-katex', {
        'throwOnError': false,  // (optional)
        'errorColor': '#cc0000'  // (optional)
      }
    ]
  ]
}

 

License

MIT

Keywords