summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/astro/src/@types/astro.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index fff3f9f6c..78ba9e301 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -515,6 +515,27 @@ export interface AstroUserConfig {
/**
* @docs
+ * @name markdown.mode
+ * @type {'md' | 'mdx'}
+ * @default `mdx`
+ * @description
+ * Control if markdown processing is done using MDX or not.
+ *
+ * MDX processing enables you to use JSX inside your Markdown files. However, there may be instances where you don't want this behavior, and would rather use a "vanilla" markdown processor. This field allows you to control that behavior.
+ *
+ * ```js
+ * {
+ * markdown: {
+ * // Example: Use non-MDX processor for Markdown files
+ * mode: 'md',
+ * }
+ * }
+ * ```
+ */
+ mode?: 'md' | 'mdx';
+
+ /**
+ * @docs
* @name markdown.shikiConfig
* @typeraw {Partial<ShikiConfig>}
* @description