@docusaurus/types 0.0.0-5332 → 0.0.0-5335

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "0.0.0-5332",
3
+ "version": "0.0.0-5335",
4
4
  "description": "Common types for Docusaurus packages.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -26,5 +26,5 @@
26
26
  "react": "^16.8.4 || ^17.0.0",
27
27
  "react-dom": "^16.8.4 || ^17.0.0"
28
28
  },
29
- "gitHead": "87c793e511060b3753659e150782f38b25694aec"
29
+ "gitHead": "42c59e0828b093f765f6c37d522c02ef74846a31"
30
30
  }
package/src/config.d.ts CHANGED
@@ -16,6 +16,20 @@ export type ThemeConfig = {
16
16
  [key: string]: unknown;
17
17
  };
18
18
 
19
+ export type MarkdownConfig = {
20
+ /**
21
+ * Allow mermaid language code blocks to be rendered into Mermaid diagrams:
22
+ *
23
+ * - `true`: code blocks with language mermaid will be rendered.
24
+ * - `false` | `undefined` (default): code blocks with language mermaid
25
+ * will be left as code blocks.
26
+ *
27
+ * @see https://docusaurus.io/docs/markdown-features/diagrams/
28
+ * @default false
29
+ */
30
+ mermaid?: boolean;
31
+ };
32
+
19
33
  /**
20
34
  * Docusaurus config, after validation/normalization.
21
35
  */
@@ -277,6 +291,8 @@ export type DocusaurusConfig = {
277
291
  */
278
292
  jsLoader: 'babel' | ((isServer: boolean) => RuleSetRule);
279
293
  };
294
+ /** Markdown-related options. */
295
+ markdown: MarkdownConfig;
280
296
  };
281
297
 
282
298
  /**
package/src/index.d.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  export {
9
9
  ReportingSeverity,
10
10
  ThemeConfig,
11
+ MarkdownConfig,
11
12
  DocusaurusConfig,
12
13
  Config,
13
14
  } from './config';