summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/beige-lizards-scream.md5
-rw-r--r--packages/astro/src/@types/astro.ts21
2 files changed, 26 insertions, 0 deletions
diff --git a/.changeset/beige-lizards-scream.md b/.changeset/beige-lizards-scream.md
new file mode 100644
index 000000000..12fce71b4
--- /dev/null
+++ b/.changeset/beige-lizards-scream.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Added "mode" to Astro config file TypeScript definitions
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