summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar Juan Martín Seery <me@juanm04.com> 2022-04-29 21:07:09 -0300
committerGravatar GitHub <noreply@github.com> 2022-04-29 21:07:09 -0300
commitde123b28b3ff398b800cb598f20326ca85a0fb60 (patch)
tree318b1345cbd0869b05399c2985ca844c6b943c8f /examples/with-markdown-plugins/astro.config.mjs
parent9984f8ea24cd2d8eee11e9da50b6d048a0fad52c (diff)
downloadastro-de123b28b3ff398b800cb598f20326ca85a0fb60.tar.gz
astro-de123b28b3ff398b800cb598f20326ca85a0fb60.tar.zst
astro-de123b28b3ff398b800cb598f20326ca85a0fb60.zip
refactor(markdown): removed `rehype-slug` in favor of our own implementation (#3234)
* Moved types arround * Removed `rehype-slug` in favor of our own implementation * Changeset * Removed rehype-slug from examples * Remove rehype-slug from tests * Updated reference * rehypeCollectHeaders is a function again * Reverted rehype-slug removes * Re-added rehype-slug to reference
Diffstat (limited to 'examples/with-markdown-plugins/astro.config.mjs')
-rw-r--r--examples/with-markdown-plugins/astro.config.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/with-markdown-plugins/astro.config.mjs b/examples/with-markdown-plugins/astro.config.mjs
index 4872caac7..af2d96e75 100644
--- a/examples/with-markdown-plugins/astro.config.mjs
+++ b/examples/with-markdown-plugins/astro.config.mjs
@@ -7,10 +7,10 @@ export default defineConfig({
markdown: {
remarkPlugins: ['remark-code-titles'],
rehypePlugins: [
+ 'rehype-slug',
['rehype-autolink-headings', { behavior: 'prepend' }],
['rehype-toc', { headings: ['h2', 'h3'] }],
[addClasses, { 'h1,h2,h3': 'title' }],
- 'rehype-slug',
],
},
});