diff options
author | 2021-12-01 08:36:28 -0800 | |
---|---|---|
committer | 2021-12-01 10:36:28 -0600 | |
commit | ec35fdd768519e2d6f4a7de17d7a9b7bfaaa3c94 (patch) | |
tree | cf7a5467fb8adb5c58fe22f56330761b5eeffa1d /docs/src | |
parent | 3a459254158ec51759ed249c1de194e680f9737d (diff) | |
download | astro-ec35fdd768519e2d6f4a7de17d7a9b7bfaaa3c94.tar.gz astro-ec35fdd768519e2d6f4a7de17d7a9b7bfaaa3c94.tar.zst astro-ec35fdd768519e2d6f4a7de17d7a9b7bfaaa3c94.zip |
Add migration guide for markdownOptions (#2070)
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/pages/migration/0.21.0.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/src/pages/migration/0.21.0.md b/docs/src/pages/migration/0.21.0.md index 38a7236e9..3adc7e6b6 100644 --- a/docs/src/pages/migration/0.21.0.md +++ b/docs/src/pages/migration/0.21.0.md @@ -193,6 +193,29 @@ To learn more about Vite plugins, please visit their [plugin guide](https://vite > In prior releases, these were configured with `snowpackPlugin` or `snowpackPluginOptions`. +## Markdown Options + +The configuration of markdown options has changed slightly in Astro v0.21. There's now a `render` property, which should include `@astrojs/markdown-remark`: + +```diff +// astro.config.mjs +export default { + markdownOptions: { ++ render: [ ++ '@astrojs/markdown-remark', ++ { + remarkPlugins: [ + // Add a Remark plugin that you want to enable for your project. + ], + rehypePlugins: [ + // Add a Rehype plugin that you want to enable for your project. + ], ++ }, ++ ], + }, +}; +``` + ## Styling Changes ### Autoprefixer |