aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-07 15:59:48 +0200
committerArmand Philippot <git@armandphilippot.com>2022-06-07 17:13:29 +0200
commitd54fc38899b3ffc87104ed03f5e48be3f02e337c (patch)
tree233df552fb67f5fab7a14eae339918743cd07d5f /src/ts
parentac79a48c07c538316949d6284bc5d9c0eb2e3f91 (diff)
chore: use image title as figure label if no caption is provided
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/mdx.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ts/types/mdx.ts b/src/ts/types/mdx.ts
index 16538c1..7645ce6 100644
--- a/src/ts/types/mdx.ts
+++ b/src/ts/types/mdx.ts
@@ -3,7 +3,12 @@ import { Meta } from './app';
export type MDXData = {
file: string;
- image: StaticImageData;
+ image: MDXImage;
+};
+
+export type MDXImage = StaticImageData & {
+ alt: string;
+ title?: string;
};
export type MDXPageMeta = Pick<Meta<'page'>, 'cover' | 'dates' | 'seo'> & {