Describe the bug
In VitePress, I installed [email protected], and then set the math property to true in vite.config.ts.
In my Markdown file, I wrote the following math formulas:
$(i + j) / 2$
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
At this point, VitePress reported an error with the following details:

Reproduction
- pnpm add -D vitepress
- pnpm vitepress init
- pnpm add -D markdown-it-mathjax3
- set the
math property to true in vite.config.ts
- In Markdown file, wrote the following math formulas:
$(i + j) / 2$
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a} $$
Expected behavior
I expect the math formulas to be displayed correctly.

System Info
Additional context
No response
Validations