@rspress/shared 0.0.0-nightly-20231015160142 → 0.0.0-nightly-20231017160307

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -1
  2. 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) => UserConfig | Promise<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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "0.0.0-nightly-20231015160142",
3
+ "version": "0.0.0-nightly-20231017160307",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",