diff options
author | 2021-11-22 20:49:15 +0000 | |
---|---|---|
committer | 2021-11-22 20:49:15 +0000 | |
commit | c22e4c69ec3c544abda22d48526193c66351ccd9 (patch) | |
tree | 6d27b0beab68f6f65a2aa5d4c9fec88a182ffd70 /docs/src/pages/guides/markdown-content.md | |
parent | 679d4395ec068f056a8278db17e4a4852eece222 (diff) | |
download | astro-c22e4c69ec3c544abda22d48526193c66351ccd9.tar.gz astro-c22e4c69ec3c544abda22d48526193c66351ccd9.tar.zst astro-c22e4c69ec3c544abda22d48526193c66351ccd9.zip |
[ci] yarn format
Diffstat (limited to 'docs/src/pages/guides/markdown-content.md')
-rw-r--r-- | docs/src/pages/guides/markdown-content.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/src/pages/guides/markdown-content.md b/docs/src/pages/guides/markdown-content.md index 235d73da9..b3c851fa6 100644 --- a/docs/src/pages/guides/markdown-content.md +++ b/docs/src/pages/guides/markdown-content.md @@ -18,8 +18,8 @@ export default { 'parser-name', // or import('parser-name') or (contents) => {...} { // options - } - ] + }, + ], }, }; ``` @@ -33,7 +33,7 @@ In addition to custom components inside the [`<Markdown>` component](/guides/mar - [GitHub-flavored Markdown](https://github.com/remarkjs/remark-gfm) - [remark-smartypants](https://github.com/silvenon/remark-smartypants) - [rehype-slug](https://github.com/rehypejs/rehype-slug) -- [Prism](https://prismjs.com/) +- [Prism](https://prismjs.com/) Also, Astro supports third-party plugins for Markdown. You can provide your plugins in `astro.config.mjs`. @@ -60,9 +60,9 @@ export default { // If you need to provide options for the plugin, you can use an array and put the options as the second item. // 'rehype-slug', // ['rehype-autolink-headings', { behavior: 'prepend'}], - ] - } - ] + ], + }, + ], }, }; ``` @@ -79,8 +79,8 @@ export default { remarkPlugins: [ [import('remark-autolink-headings'), { behavior: 'prepend' }], ], - } - ] + }, + ], }, }; ``` |