File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " nextra " : patch
3
+ ---
4
+
5
+ fix ` Could not parse expression with acorn ` for inline math code in ` development ` mode without turbopack enabled
6
+
Original file line number Diff line number Diff line change 1
1
import { createProcessor } from '@mdx-js/mdx'
2
2
import type { Program } from 'estree'
3
3
import remarkFrontmatter from 'remark-frontmatter'
4
+ import remarkMath from 'remark-math'
4
5
import type { Plugin , Transformer } from 'unified'
5
6
import {
6
7
remarkAssignFrontMatter ,
@@ -28,7 +29,8 @@ export async function compileMetadata(
28
29
remarkMdxFrontMatter ,
29
30
remarkMdxTitle ,
30
31
[ remarkAssignFrontMatter , { lastCommitTime } ] ,
31
- remarkExportOnlyMetadata
32
+ remarkExportOnlyMetadata ,
33
+ remarkMath // https://github.com/shuding/nextra/issues/4164
32
34
] ,
33
35
recmaPlugins : [ recmaExportOnlyMetadata ]
34
36
} )
You can’t perform that action at this time.
0 commit comments