完善 mdx 文件处理,修复代码高亮问题
This commit is contained in:
@@ -3,8 +3,11 @@ import createMDX from '@next/mdx'
|
||||
export default createMDX({
|
||||
extension: /\.(md|mdx)$/,
|
||||
options: {
|
||||
remarkPlugins: [
|
||||
'remark-gfm',
|
||||
],
|
||||
rehypePlugins: [
|
||||
['rehype-highlight', null],
|
||||
'rehype-highlight',
|
||||
],
|
||||
},
|
||||
})({
|
||||
@@ -13,11 +16,6 @@ export default createMDX({
|
||||
allowedDevOrigins: [
|
||||
'192.168.3.42',
|
||||
],
|
||||
experimental: {
|
||||
mdxRs: {
|
||||
mdxType: 'gfm',
|
||||
},
|
||||
},
|
||||
images: {
|
||||
localPatterns: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user