816 B
816 B
title, createTime, permalink
| title | createTime | permalink |
|---|---|---|
| Markdown Math | 2025/10/09 13:20:41 | /en/config/plugins/markdown-math/ |
Overview
Adds mathematical formula support for Markdown.
Related plugin: @vuepress/plugin-markdown-math
This plugin allows you to render \TeX content in Markdown using MathJax or KaTeX.
Configuration
The plugin enables katex by default.
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: {}
}
}),
})