mirror of
https://github.com/MCKero6423/fuwari.git
synced 2026-10-02 03:15:35 +00:00
Restore rehypeImageOptimization plugin in astro.config.mjs
Co-authored-by: MCKero6423 <222912022+MCKero6423@users.noreply.github.com>
This commit is contained in:
1 parent
c5905c439c
commit
a667173b30
1 file changed
+2
@@ -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,
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user