From 341344f331b7a59e0f40c394ab403f19f6e0e147 Mon Sep 17 00:00:00 2001 From: Mark Spratt <72772558+Hopelezz@users.noreply.github.com> Date: Sun, 7 Aug 2022 04:18:33 -0500 Subject: [PATCH] docs: Modify legacy flag description (#4187) Co-authored-by: Sarah Rainsberger --- packages/astro/src/@types/astro.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 7051cec2bc..b5338525cc 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -724,6 +724,17 @@ export interface AstroUserConfig { * @description * Enable Astro's pre-v1.0 support for components and JSX expressions in `.md` Markdown files. * In Astro `1.0.0-rc`, this original behavior was removed as the default, in favor of our new [MDX integration](/en/guides/integrations-guide/mdx/). + * + * To enable this behavior, set `legacy.astroFlavoredMarkdown` to `true` in your [`astro.config.mjs` configuration file](/en/guides/configuring-astro/#the-astro-config-file). + * + * ```js + * { + * legacy: { + * // Example: Add support for legacy Markdown features + * astroFlavoredMarkdown: true, + * }, + * } + * ``` */ astroFlavoredMarkdown?: boolean; };