fix markdown mode default (#2991)

* fix markdown mode default

* Update config.ts
This commit is contained in:
Fred K. Schott 2022-04-04 20:01:31 -05:00 committed by GitHub
parent bffc212825
commit 8425347cd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()