diff options
author | 2021-07-07 20:10:09 +0000 | |
---|---|---|
committer | 2021-07-07 20:10:09 +0000 | |
commit | 1bbe98ae54eb6018184fdc3875fe689775510ad6 (patch) | |
tree | eb8500d84704793c0d5b711f2e8f1b3822a83532 /docs/guides/markdown-content.md | |
parent | 53fcae1a9a26e3e2e9d6aca7ec71acc13a3556ea (diff) | |
download | astro-1bbe98ae54eb6018184fdc3875fe689775510ad6.tar.gz astro-1bbe98ae54eb6018184fdc3875fe689775510ad6.tar.zst astro-1bbe98ae54eb6018184fdc3875fe689775510ad6.zip |
[ci] yarn format
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' }]], }, }; ``` |