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 | |
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')
-rw-r--r-- | examples/with-markdown-plugins/astro.config.mjs | 3 | ||||
-rw-r--r-- | examples/with-markdown-plugins/package.json | 4 |
2 files changed, 4 insertions, 3 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', ], }, ], diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 995f8f9f5..435923cb2 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,8 +12,8 @@ "astro": "^0.21.1", "rehype-add-classes": "^1.0.0", "rehype-autolink-headings": "^6.1.0", + "rehype-slug": "^5.0.0", "rehype-toc": "^3.0.2", - "remark-code-titles": "^0.1.2", - "remark-slug": "^6.0.0" + "remark-code-titles": "^0.1.2" } } |