Add migration guide for markdownOptions (#2070)
This commit is contained in:
parent
3a45925415
commit
ec35fdd768
1 changed files with 23 additions and 0 deletions
|
@ -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`.
|
> 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
|
## Styling Changes
|
||||||
|
|
||||||
### Autoprefixer
|
### Autoprefixer
|
||||||
|
|
Loading…
Reference in a new issue