From 8425347cd51eef8fef4d2cd7210df39a6dc0da38 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Mon, 4 Apr 2022 20:01:31 -0500 Subject: [PATCH] fix markdown mode default (#2991) * fix markdown mode default * Update config.ts --- packages/astro/src/core/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index 547e64fa8..cead6582c 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -146,7 +146,9 @@ export const AstroConfigSchema = z.object({ mode: z .union([z.literal('md'), z.literal('mdx')]) .optional() - .default('md'), + // NOTE: "mdx" allows us to parse/compile Astro components in markdown. + // TODO: This should probably be updated to something more like "md" | "astro" + .default('mdx'), syntaxHighlight: z .union([z.literal('shiki'), z.literal('prism'), z.literal(false)]) .optional()