summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-markdown-plugins')
-rw-r--r--examples/with-markdown-plugins/astro.config.mjs15
-rw-r--r--examples/with-markdown-plugins/package.json4
2 files changed, 9 insertions, 10 deletions
diff --git a/examples/with-markdown-plugins/astro.config.mjs b/examples/with-markdown-plugins/astro.config.mjs
index 0e112712a..4872caac7 100644
--- a/examples/with-markdown-plugins/astro.config.mjs
+++ b/examples/with-markdown-plugins/astro.config.mjs
@@ -1,17 +1,16 @@
import { defineConfig } from 'astro/config';
-import astroRemark from '@astrojs/markdown-remark';
import addClasses from './add-classes.mjs';
// https://astro.build/config
export default defineConfig({
// Enable Custom Markdown options, plugins, etc.
- markdownOptions: {
- render: [
- astroRemark,
- {
- remarkPlugins: ['remark-code-titles'],
- rehypePlugins: [['rehype-autolink-headings', { behavior: 'prepend' }], ['rehype-toc', { headings: ['h2', 'h3'] }], [addClasses, { 'h1,h2,h3': 'title' }], 'rehype-slug'],
- },
+ markdown: {
+ remarkPlugins: ['remark-code-titles'],
+ rehypePlugins: [
+ ['rehype-autolink-headings', { behavior: 'prepend' }],
+ ['rehype-toc', { headings: ['h2', 'h3'] }],
+ [addClasses, { 'h1,h2,h3': 'title' }],
+ 'rehype-slug',
],
},
});
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 7c02a8014..159b7cc4a 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -9,8 +9,8 @@
"preview": "astro preview"
},
"devDependencies": {
- "@astrojs/markdown-remark": "^0.7.0",
- "astro": "^0.25.4",
+ "@astrojs/markdown-remark": "^0.8.0",
+ "astro": "^0.26.0",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",