diff options
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" } } |