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.mjs19
1 files changed, 8 insertions, 11 deletions
diff --git a/examples/with-markdown-plugins/astro.config.mjs b/examples/with-markdown-plugins/astro.config.mjs
index 8e70603a3..a7a644944 100644
--- a/examples/with-markdown-plugins/astro.config.mjs
+++ b/examples/with-markdown-plugins/astro.config.mjs
@@ -11,16 +11,13 @@ import astroRemark from '@astrojs/markdown-remark';
export default /** @type {import('astro').AstroUserConfig} */ ({
// Enable Custom Markdown options, plugins, etc.
markdownOptions: {
- render: [
- astroRemark,
- {
- remarkPlugins: ['remark-code-titles', 'remark-slug'],
- rehypePlugins: [
- ['rehype-autolink-headings', { behavior: 'prepend' }],
- ['rehype-toc', { headings: ['h2', 'h3'] }],
- ['rehype-add-classes', { 'h1,h2,h3': 'title' }],
- ],
- },
- ],
+ render: [astroRemark, {
+ remarkPlugins: ['remark-code-titles', 'remark-slug'],
+ rehypePlugins: [
+ ['rehype-autolink-headings', { behavior: 'prepend' }],
+ ['rehype-toc', { headings: ['h2', 'h3'] }],
+ ['rehype-add-classes', { 'h1,h2,h3': 'title' }],
+ ]
+ }]
},
});