summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar JuanM04 <me@juanm04.com> 2021-11-22 17:48:00 -0300
committerGravatar GitHub <noreply@github.com> 2021-11-22 14:48:00 -0600
commit679d4395ec068f056a8278db17e4a4852eece222 (patch)
treefa4df0eb155f128cffda67e56ef5f7b473e3c6d8 /examples/with-markdown-plugins/astro.config.mjs
parentce8f8e06c0d79fbe44538a1d63c5bf3a79ba27ff (diff)
downloadastro-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.mjs3
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',
],
},
],