@renovamen/vuepress-plugin-katex

0.2.0 • Public • Published

@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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @renovamen/vuepress-plugin-katex

    Weekly Downloads

    11

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    9.01 kB

    Total Files

    7

    Last publish

    Collaborators

    • renovamen