0.3.0 • Published 2 years ago
vuepress-plugin-katex v0.3.0
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
}
}
}
}
// ...
}