Skip to content

Commit

Permalink
docs: Modify legacy flag description (withastro#4187)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
Hopelezz and sarah11918 committed Aug 7, 2022
1 parent 3a7e022 commit 341344f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 341344f

Please sign in to comment.