Closed inflation closed 1 year ago
MDX does not support latex by default.
If you want to enable latex in math blocks, you'd need https://github.com/remarkjs/remark-math added as a plugin through a .remarkrc
file https://github.com/unifiedjs/unified-engine/blob/main/doc/configure.md
Good catch. Never noticed that, adding the plugin solved it.
Initial checklist
Affected packages and versions
"eslint-plugin-mdx": "2.0.5",
Link to runnable example
No response
Steps to reproduce
Any .mdx file with a latex section like:
Expected behavior
Parse normally
Actual behavior
Parsing error: Could not parse expression with acorn: Unexpected token
The problem is at the
*
in\begin{align*}
.Runtime
Node v18
Package manager
pnpm
OS
macOS
Build and bundle tools
Next.js