summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar JuanM04 <me@juanm04.com> 2022-04-02 18:53:00 -0300
committerGravatar JuanM04 <me@juanm04.com> 2022-04-02 18:53:00 -0300
commita377ac1efc86afd1cb37c69248fa5adae0eb6e37 (patch)
tree8edb602e029c6d520fd684de6a36d87934842320 /examples/with-markdown-plugins/astro.config.mjs
parente30aa4dfef2bbe874e2fe7f07232bf8a3c092317 (diff)
parenta05177c50d52f09f32bcb2983e7af73f6507e235 (diff)
downloadastro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.tar.gz
astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.tar.zst
astro-a377ac1efc86afd1cb37c69248fa5adae0eb6e37.zip
Merge branch 'main' into feat/vercel-adapter
Diffstat (limited to 'examples/with-markdown-plugins/astro.config.mjs')
-rw-r--r--examples/with-markdown-plugins/astro.config.mjs15
1 files changed, 7 insertions, 8 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',
],
},
});