完善 mdx 文件处理,修复代码高亮问题

This commit is contained in:
2025-12-09 11:22:30 +08:00
parent bdb6264825
commit 5202f8190e
8 changed files with 105 additions and 73 deletions

View File

@@ -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: [
{