34 lines
764 B
Markdown

---
url: /en/config/plugins/markdown-math/index.md
---
## Overview
Adds mathematical formula support for Markdown.
Related plugin: [@vuepress/plugin-markdown-math](https://ecosystem.vuejs.press/plugins/markdown/markdown-math.html)
This plugin allows you to render $\TeX$ content in Markdown using MathJax or KaTeX.
## Configuration
The plugin enables `katex` by default.
```ts title=".vuepress/config.ts"
import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume'
export default defineUserConfig({
theme: plumeTheme({
markdown: {
math: {
type: 'katex',
}
},
// Can also be configured in `plugins.markdownMath`, but not recommended
plugins: {
markdownMath: {}
}
}),
})
```