import { defineConfig } from 'astro/config'; import compress from "astro-compress"; import remarkUnwrapImages from 'remark-unwrap-images'; import { rehypeHeadingIds } from '@astrojs/markdown-remark'; import rehypeSlug from 'rehype-slug'; import rehypeAutolinkHeadings from 'rehype-autolink-headings'; // https://astro.build/config export default defineConfig({ integrations: [compress()], build: { format: "directory" }, markdown: { syntaxHighlight: "shiki", remarkPlugins: [remarkUnwrapImages], rehypePlugins: [ rehypeSlug, rehypeHeadingIds, [ rehypeAutolinkHeadings, { behavior: "append" }, ], ], }, });