summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins
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
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')
-rw-r--r--examples/with-markdown-plugins/astro.config.mjs3
-rw-r--r--examples/with-markdown-plugins/package.json4
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"
}
}