添加自动化插件

This commit is contained in:
mckero committed 2026-01-12 14:41:32 +00:00
1 parent 7f52d576ec
commit c789262d5c
2 files changed
+76

No files matched your search

+2
View File
@@ -24,6 +24,7 @@ import { remarkExcerpt } from "./src/plugins/remark-excerpt.js";
import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
import { pluginCustomCopyButton } from "./src/plugins/expressive-code/custom-copy-button.js";
import rehypeExternalLinks from 'rehype-external-links';
import { rehypeImageOptimization } from "./rehype-image-optimization.mjs";
// https://astro.build/config
export default defineConfig({
@@ -114,6 +115,7 @@ export default defineConfig({
parseDirectiveNode,
],
rehypePlugins: [
rehypeImageOptimization,
rehypeKatex,
rehypeSlug,
[