summaryrefslogtreecommitdiff
path: root/examples/with-markdown-shiki
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-markdown-shiki')
-rw-r--r--examples/with-markdown-shiki/astro.config.mjs20
-rw-r--r--examples/with-markdown-shiki/package.json4
2 files changed, 9 insertions, 15 deletions
diff --git a/examples/with-markdown-shiki/astro.config.mjs b/examples/with-markdown-shiki/astro.config.mjs
index 7a0b4f0f2..a091e103c 100644
--- a/examples/with-markdown-shiki/astro.config.mjs
+++ b/examples/with-markdown-shiki/astro.config.mjs
@@ -1,20 +1,14 @@
import { defineConfig } from 'astro/config';
-import astroRemark from '@astrojs/markdown-remark';
// https://astro.build/config
export default defineConfig({
// Enable Custom Markdown options, plugins, etc.
- markdownOptions: {
- render: [
- astroRemark,
- {
- syntaxHighlight: 'shiki',
- shikiConfig: {
- theme: 'dracula',
- // Learn more about this configuration here:
- // https://docs.astro.build/en/guides/markdown-content/#syntax-highlighting
- },
- },
- ],
+ markdown: {
+ syntaxHighlight: 'shiki',
+ shikiConfig: {
+ theme: 'dracula',
+ // Learn more about this configuration here:
+ // https://docs.astro.build/en/guides/markdown-content/#syntax-highlighting
+ },
},
});
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 33de85830..e8151440e 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -9,7 +9,7 @@
"preview": "astro preview"
},
"devDependencies": {
- "@astrojs/markdown-remark": "^0.7.0",
- "astro": "^0.25.4"
+ "@astrojs/markdown-remark": "^0.8.0",
+ "astro": "^0.26.0"
}
}