Merge pull request #5 from MCKero6423/copilot/restore-auto-link-plugin

[WIP] Restore auto link plugin
This commit is contained in:
mckero authored and GitHub committed 2026-03-12 07:23:23 +08:00
commit 2153e41c33
1 file changed
+2
+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 { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
import { pluginCustomCopyButton } from "./src/plugins/expressive-code/custom-copy-button.js"; import { pluginCustomCopyButton } from "./src/plugins/expressive-code/custom-copy-button.js";
import rehypeExternalLinks from 'rehype-external-links'; import rehypeExternalLinks from 'rehype-external-links';
import { rehypeImageOptimization } from "./rehype-image-optimization.mjs";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
@@ -114,6 +115,7 @@ export default defineConfig({
parseDirectiveNode, parseDirectiveNode,
], ],
rehypePlugins: [ rehypePlugins: [
rehypeImageOptimization,
rehypeKatex, rehypeKatex,
rehypeSlug, rehypeSlug,
[ [