@docusaurus/types 0.0.0-5784 → 0.0.0-5785
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 +3 -2
- package/src/config.d.ts +10 -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-5785",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
+
"@mdx-js/mdx": "^3.0.0",
|
|
16
17
|
"@types/history": "^4.7.11",
|
|
17
18
|
"@types/react": "*",
|
|
18
19
|
"commander": "^5.1.0",
|
|
@@ -26,5 +27,5 @@
|
|
|
26
27
|
"react": "^18.0.0",
|
|
27
28
|
"react-dom": "^18.0.0"
|
|
28
29
|
},
|
|
29
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "ba50a4f9fe26120fbd9404908849661246b734ff"
|
|
30
31
|
}
|
package/src/config.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ import type {Required as RequireKeys, DeepPartial} from 'utility-types';
|
|
|
10
10
|
import type {I18nConfig} from './i18n';
|
|
11
11
|
import type {PluginConfig, PresetConfig, HtmlTagObject} from './plugin';
|
|
12
12
|
|
|
13
|
+
import type {ProcessorOptions} from '@mdx-js/mdx';
|
|
14
|
+
|
|
15
|
+
export type RemarkRehypeOptions = ProcessorOptions['remarkRehypeOptions'];
|
|
16
|
+
|
|
13
17
|
export type ReportingSeverity = 'ignore' | 'log' | 'warn' | 'throw';
|
|
14
18
|
|
|
15
19
|
export type ThemeConfig = {
|
|
@@ -91,6 +95,12 @@ export type MarkdownConfig = {
|
|
|
91
95
|
* See also https://github.com/facebook/docusaurus/issues/4029
|
|
92
96
|
*/
|
|
93
97
|
mdx1Compat: MDX1CompatOptions;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Ability to provide custom remark-rehype options
|
|
101
|
+
* See also https://github.com/remarkjs/remark-rehype#options
|
|
102
|
+
*/
|
|
103
|
+
remarkRehypeOptions: RemarkRehypeOptions;
|
|
94
104
|
};
|
|
95
105
|
|
|
96
106
|
/**
|