mirror of
https://github.com/10h30/blog-balodeplao.git
synced 2026-05-12 15:21:15 +09:00
chore: replace remarkunwrapimages iwth rehypunwrapimages
This commit is contained in:
+2
-3
@@ -4,7 +4,7 @@ import mdx from "@astrojs/mdx";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import icon from "astro-icon";
|
||||
import remarkReadingTime from "remark-reading-time";
|
||||
import remarkUnwrapImages from "remark-unwrap-images";
|
||||
import rehypeUnwrapImages from "rehype-unwrap-images";
|
||||
import { remarkR2Images } from "./src/plugins/remark-r2-images.mjs";
|
||||
import { rehypePictureWebp } from "./src/plugins/rehype-picture-webp.mjs";
|
||||
import { remarkYouTube } from "./src/plugins/remark-youtube.mjs";
|
||||
@@ -23,11 +23,10 @@ export default defineConfig({
|
||||
};
|
||||
},
|
||||
remarkR2Images,
|
||||
remarkUnwrapImages,
|
||||
remarkYouTube,
|
||||
remarkInstagram,
|
||||
],
|
||||
rehypePlugins: [rehypePictureWebp],
|
||||
rehypePlugins: [rehypeUnwrapImages, rehypePictureWebp],
|
||||
},
|
||||
i18n: {
|
||||
defaultLocale: "vi",
|
||||
|
||||
Reference in New Issue
Block a user