Add migration guide for markdownOptions (#2070)

This commit is contained in:
Ian VanSchooten 2021-12-01 08:36:28 -08:00 committed by GitHub
parent 3a45925415
commit ec35fdd768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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