diff options
Diffstat (limited to 'docs/guides/markdown-content.md')
-rw-r--r-- | docs/guides/markdown-content.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/guides/markdown-content.md b/docs/guides/markdown-content.md index 00dbd7f87..71d18fe7e 100644 --- a/docs/guides/markdown-content.md +++ b/docs/guides/markdown-content.md @@ -4,6 +4,7 @@ title: Markdown Content --- Astro comes with out-of-the-box Markdown support powered by the expansive [remark](https://remark.js.org/) ecosystem. + ## Remark and Rehype Plugins In addition to [custom components inside the `<Markdown>` component](#markdown-component), Astro comes with [GitHub-flavored Markdown](https://github.github.com/gfm/) support, [Footnotes](https://github.com/remarkjs/remark-footnotes) syntax, [Smartypants](https://github.com/silvenon/remark-smartypants), and syntax highlighting via [Prism](https://prismjs.com/) pre-enabled. @@ -42,10 +43,7 @@ You can provide names of the plugins as well as import them: // astro.config.js export default { markdownOptions: { - remarkPlugins: [ - import('remark-slug'), - [import('remark-autolink-headings'), { behavior: 'prepend' }], - ], + remarkPlugins: [import('remark-slug'), [import('remark-autolink-headings'), { behavior: 'prepend' }]], }, }; ``` |