diff options
author | 2021-11-22 17:48:00 -0300 | |
---|---|---|
committer | 2021-11-22 14:48:00 -0600 | |
commit | 679d4395ec068f056a8278db17e4a4852eece222 (patch) | |
tree | fa4df0eb155f128cffda67e56ef5f7b473e3c6d8 /examples/with-markdown-plugins/astro.config.mjs | |
parent | ce8f8e06c0d79fbe44538a1d63c5bf3a79ba27ff (diff) | |
download | astro-679d4395ec068f056a8278db17e4a4852eece222.tar.gz astro-679d4395ec068f056a8278db17e4a4852eece222.tar.zst astro-679d4395ec068f056a8278db17e4a4852eece222.zip |
Markdown package improvements (#1954)
* Re-add smartypants
* Updated packages
* Remove all the default plugins if there are either remark or rehype plugins
* Replace deperecated remark-slug with rehype-slug
* Added MarkdownParserResponse type
* Update documentation
* Removed type import from markdown package
* Updated remark-smartypants
* Changelog
* Missed one change
* Split changelogs
* Upgraded some MDX dependencies
* Fix typos in documentation
* Changed CHANGELOG.md package name
* Renamed smartypants
Diffstat (limited to 'examples/with-markdown-plugins/astro.config.mjs')
-rw-r--r-- | examples/with-markdown-plugins/astro.config.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/with-markdown-plugins/astro.config.mjs b/examples/with-markdown-plugins/astro.config.mjs index 8e70603a3..d68232fae 100644 --- a/examples/with-markdown-plugins/astro.config.mjs +++ b/examples/with-markdown-plugins/astro.config.mjs @@ -14,11 +14,12 @@ export default /** @type {import('astro').AstroUserConfig} */ ({ render: [ astroRemark, { - remarkPlugins: ['remark-code-titles', 'remark-slug'], + remarkPlugins: ['remark-code-titles'], rehypePlugins: [ ['rehype-autolink-headings', { behavior: 'prepend' }], ['rehype-toc', { headings: ['h2', 'h3'] }], ['rehype-add-classes', { 'h1,h2,h3': 'title' }], + 'rehype-slug', ], }, ], |