0.3.0 • Published 2 years ago

vuepress-plugin-katex v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

KaTeX Plugin for VuePress

Install

npm install -D vuepress-plugin-katex

Usage

In your .vuepress/config.ts:

import { bundlerConfig, head } from "vuepress-plugin-katex";

module.exports = {
  // ...
  plugins: ["katex"],
  head,
  bundlerConfig,
  // ...
}

Or, with your own header & bundler configurations:

import { isCustomElement, head } from "vuepress-plugin-katex";

module.exports = {
  // ...
  plugins: ["katex"],
  head: [...head],
  bundlerConfig: {
    vuePluginOptions: {
      template: {
        compilerOptions: {
          isCustomElement
        }
      }
    }
  }
  // ...
}
0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago