Skip to content

Commit 001438d

Browse files
committed
docs: 修复 MDX 兼容问题
1 parent 6386f66 commit 001438d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docusaurus.config.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const math = require('remark-math');
88
const katex = require('rehype-katex');
99

1010
/** @type {import('@docusaurus/types').Config} */
11-
const config = {
11+
export default {
1212
title: 'Phoenix',
1313
tagline: 'Phoenix',
1414
favicon: 'img/phoenix.png',
@@ -227,11 +227,9 @@ const config = {
227227
],
228228
markdown: {
229229
mdx1Compat: {
230-
comments: false,
231-
admonitions: false,
232-
headingIds: false,
230+
comments: true,
231+
admonitions: true,
232+
headingIds: true,
233233
},
234234
}
235-
};
236-
237-
module.exports = config;
235+
};

0 commit comments

Comments
 (0)