@rspress/shared 0.0.0-nightly-20231016160331 → 0.0.0-nightly-20231018160139
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/dist/index.d.ts +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -288,7 +288,10 @@ interface RspressPlugin {
|
|
288
288
|
/**
|
289
289
|
* Modify doc config.
|
290
290
|
*/
|
291
|
-
config?: (config: UserConfig
|
291
|
+
config?: (config: UserConfig, utils: {
|
292
|
+
addPlugin: (plugin: RspressPlugin) => void;
|
293
|
+
removePlugin: (pluginName: string) => void;
|
294
|
+
}) => UserConfig | Promise<UserConfig>;
|
292
295
|
/**
|
293
296
|
* Callback before build
|
294
297
|
*/
|
@@ -620,6 +623,10 @@ interface MarkdownOptions {
|
|
620
623
|
* Register global components in mdx files
|
621
624
|
*/
|
622
625
|
globalComponents?: string[];
|
626
|
+
/**
|
627
|
+
* Register prism languages
|
628
|
+
*/
|
629
|
+
highlightLanguages?: (string | [string, string])[];
|
623
630
|
/**
|
624
631
|
* Whether to enable mdx-rs, default is true
|
625
632
|
*/
|