succesfully implemented mdx

This commit is contained in:
2024-02-02 10:02:31 +01:00
parent 53008701e0
commit 2f962e3e90
4 changed files with 84 additions and 81 deletions

View File

@@ -1,20 +1,21 @@
import { defineConfig } from 'astro/config';
import minify from 'astro-min';
import metaTags from "astro-meta-tags";
import rehypeSlug from 'rehype-slug'
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
integrations: [minify(), metaTags()],
integrations: [minify(), metaTags(), mdx()],
markdown: {
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, { behavior: 'prepend' }],
],
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, {
behavior: 'prepend'
}]],
drafts: true,
shikiConfig: {
theme: 'dracula',
},
},
theme: 'dracula'
}
}
});