diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 20:21:16 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 20:21:16 +0100 |
| commit | f38a0cb8446201cd6c937d96da33b58b4427c78f (patch) | |
| tree | 20225ce0df0f95e094a01650a3f7477c5032cd2c /astro.config.ts | |
| parent | b6e440699e9fca474869bf74ce09f2310f05c620 (diff) | |
Add alt texts rendering
Diffstat (limited to 'astro.config.ts')
| -rw-r--r-- | astro.config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/astro.config.ts b/astro.config.ts index 792a5f2..335e744 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -15,6 +15,7 @@ import rehypeUnwrapImages from "rehype-unwrap-images"; // Remark plugins import remarkDirective from "remark-directive"; /* Handle ::: directives as nodes */ import robotsConfig from "./robots-txt.config"; +import { rehypeImageCaptions } from "./src/plugins/rehype-image-captions"; /* Add image captions on hover */ import { remarkAdmonitions } from "./src/plugins/remark-admonitions"; /* Add admonitions */ import { expressiveCodeOptions, siteConfig } from "./src/site.config"; @@ -64,6 +65,7 @@ export default defineConfig({ ], markdown: { rehypePlugins: [ + rehypeImageCaptions, rehypeHeadingIds, [rehypeAutolinkHeadings, { behavior: "wrap", properties: { className: ["not-prose"] } }], [ |
