Fixed rehype-figure
This commit is contained in:
parent
ccd3f51779
commit
4b30fd0d79
1 changed files with 4 additions and 7 deletions
|
@ -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" },
|
||||
],
|
||||
],
|
||||
},
|
||||
});
|
Loading…
Add table
Reference in a new issue