Fix markdown rehype plugin example (#8733)

This commit is contained in:
Kobe Ruado 2023-10-04 17:55:02 +08:00 committed by GitHub
parent 240d8ff7c9
commit 71618f4074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1168,10 +1168,10 @@ export interface AstroUserConfig {
* Pass [rehype plugins](https://github.com/remarkjs/remark-rehype) to customize how your Markdown's output HTML is processed. You can import and apply the plugin function (recommended), or pass the plugin name as a string.
*
* ```js
* import rehypeMinifyHtml from 'rehype-minify';
* import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis';
* {
* markdown: {
* rehypePlugins: [rehypeMinifyHtml]
* rehypePlugins: [rehypeAccessibleEmojis]
* }
* }
* ```