LaTeX无法使用$$语法
现象
在使用 rspress-plugin-katex
插件时无法使用以下语法
报错:MDX compile error: Cannot read properties of undefined (reading 'mathFlowInside')
原因
主要原因是remark-math
的版本过高,移除了对$$
语法的支持。
解决方法
-
手动安装低版本remark-math
-
复制rspress-plugin-katex源码
-
导入组件
方法 2:更改语法
更改为