You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/api/docusaurus.config.js.mdx
+9
Original file line number
Diff line number
Diff line change
@@ -438,13 +438,18 @@ export type ParseFrontMatter = (params: {
438
438
content:string;
439
439
}>;
440
440
441
+
typeMarkdownAnchorsConfig= {
442
+
maintainCase:boolean;
443
+
};
444
+
441
445
typeMarkdownConfig= {
442
446
format:'mdx'|'md'|'detect';
443
447
mermaid:boolean;
444
448
preprocessor?:MarkdownPreprocessor;
445
449
parseFrontMatter?:ParseFrontMatter;
446
450
mdx1Compat:MDX1CompatOptions;
447
451
remarkRehypeOptions:object; // see https://github.com/remarkjs/remark-rehype#options
452
+
anchors:MarkdownAnchorsConfig;
448
453
};
449
454
```
450
455
@@ -469,6 +474,9 @@ export default {
469
474
admonitions:true,
470
475
headingIds:true,
471
476
},
477
+
anchors: {
478
+
maintainCase:true,
479
+
},
472
480
},
473
481
};
474
482
```
@@ -484,6 +492,7 @@ export default {
484
492
| `preprocessor` | `MarkdownPreprocessor` | `undefined` | Gives you the ability to alter the Markdown content string before parsing. Use it as a last-resort escape hatch or workaround: it is almost always better to implement a Remark/Rehype plugin. |
485
493
| `parseFrontMatter` | `ParseFrontMatter` | `undefined` | Gives you the ability to provide your own front matter parser, or to enhance the default parser. Read our [front matter guide](../guides/markdown-features/markdown-features-intro.mdx#front-matter) for details. |
486
494
| `mdx1Compat` | `MDX1CompatOptions` | `{comments:true, admonitions:true, headingIds:true}` | Compatibility options to make it easier to upgrade to Docusaurus v3+. |
495
+
| `anchors` | `MarkdownAnchorsConfig` | `{maintainCase:false}` | Options to control the behavior of anchors generated from Markdown headings |
487
496
| `remarkRehypeOptions` | `object` | `undefined` | Makes it possible to pass custom [`remark-rehype` options](https://github.com/remarkjs/remark-rehype#options). |
0 commit comments