Fixed rehype-figure

This commit is contained in:
DarkCat09 2023-06-19 21:32:05 +04:00
parent ccd3f51779
commit 4b30fd0d79

View file

@ -1,14 +1,15 @@
import { defineConfig } from 'astro/config';
import compress from "astro-compress";
import remarkPostMeta from './remark-post-meta.mjs';
import remarkUnwrapImages from 'remark-unwrap-images';
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeFigure from 'rehype-figure';
// https://astro.build/config
export default defineConfig({
integrations: [compress()],
build: {
@ -18,7 +19,6 @@ export default defineConfig({
syntaxHighlight: "shiki",
remarkPlugins: [
remarkPostMeta,
remarkUnwrapImages,
],
rehypePlugins: [
rehypeSlug,
@ -27,10 +27,7 @@ export default defineConfig({
rehypeAutolinkHeadings,
{ behavior: "append" },
],
[
rehypeFigure,
{ className: "rehype-figure" },
],
],
},
});