Math
Adds
Settings
Install related
bash
$ pnpm add -D markdown-it-mathjax3bash
$ npm add -D markdown-it-mathjax3bash
$ yarn add -D markdown-it-mathjax3bash
$ bun add -D markdown-it-mathjax3Then enabling via:
ts
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
math: true,
}
})Demo
When
Demo
md
When $a \ne 0$, there are two solutions to $(ax^2 + bx + c = 0)$ and they are
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$Changelog
2026-04-18 23:33
View All Changelog