@docusaurus/types 0.0.0-5912 → 0.0.0-5913
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/config.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5913",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"react": "^18.0.0",
|
|
28
28
|
"react-dom": "^18.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "173e971bb8b24ba1a909ca8ea8f3a4d5f9163471"
|
|
31
31
|
}
|
package/src/config.d.ts
CHANGED
|
@@ -45,6 +45,13 @@ export type ParseFrontMatter = (
|
|
|
45
45
|
},
|
|
46
46
|
) => Promise<ParseFrontMatterResult>;
|
|
47
47
|
|
|
48
|
+
export type MarkdownAnchorsConfig = {
|
|
49
|
+
/**
|
|
50
|
+
* Preserves the case of the heading text when generating anchor ids.
|
|
51
|
+
*/
|
|
52
|
+
maintainCase: boolean;
|
|
53
|
+
};
|
|
54
|
+
|
|
48
55
|
export type MarkdownConfig = {
|
|
49
56
|
/**
|
|
50
57
|
* The Markdown format to use by default.
|
|
@@ -101,6 +108,11 @@ export type MarkdownConfig = {
|
|
|
101
108
|
* See also https://github.com/remarkjs/remark-rehype#options
|
|
102
109
|
*/
|
|
103
110
|
remarkRehypeOptions: RemarkRehypeOptions;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Options to control the behavior of anchors generated from Markdown headings
|
|
114
|
+
*/
|
|
115
|
+
anchors: MarkdownAnchorsConfig;
|
|
104
116
|
};
|
|
105
117
|
|
|
106
118
|
/**
|