Markdown Math
About 81 wordsLess than 1 minute
2025-10-09
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.
.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: {}
}
}),
})