From 4b30fd0d795ca0b212eec5baa52813f059f4fcce Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Mon, 19 Jun 2023 21:32:05 +0400 Subject: [PATCH] Fixed rehype-figure --- astro.config.mjs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index b5fbcbf..fcb6180 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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" }, - ], + rehypeFigure, ], }, }); \ No newline at end of file