summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-04-04 20:01:31 -0500
committerGravatar GitHub <noreply@github.com> 2022-04-04 18:01:31 -0700
commit8425347cd51eef8fef4d2cd7210df39a6dc0da38 (patch)
tree2a72ae26d78a1c755c7cd5ac9b14b074dcecba2c
parentbffc2128258895fb9f7bd54d29e0bdfe60abf637 (diff)
downloadastro-8425347cd51eef8fef4d2cd7210df39a6dc0da38.tar.gz
astro-8425347cd51eef8fef4d2cd7210df39a6dc0da38.tar.zst
astro-8425347cd51eef8fef4d2cd7210df39a6dc0da38.zip
fix markdown mode default (#2991)
* fix markdown mode default * Update config.ts
-rw-r--r--packages/astro/src/core/config.ts4
1 files changed, 3 insertions, 1 deletions
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()