I am trying to integrate the MDX with remark-math and rehype-katex plugin on Next.js. However, after I successfully added the plugins, there are a plain-text duplication after the equation. Here is the MDX file code:
# Hello
My name $x^2+2x+1$
1. dd
2. aa
3. aaaaaa
The result is as follows:
I suspected that by using the aligned environment in LaTeX solve the problem. But are there any better solution? Thanks!