diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-06-07 15:59:48 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-07 17:13:29 +0200 |
| commit | d54fc38899b3ffc87104ed03f5e48be3f02e337c (patch) | |
| tree | 233df552fb67f5fab7a14eae339918743cd07d5f /src/ts/types | |
| parent | ac79a48c07c538316949d6284bc5d9c0eb2e3f91 (diff) | |
chore: use image title as figure label if no caption is provided
Diffstat (limited to 'src/ts/types')
| -rw-r--r-- | src/ts/types/mdx.ts | 7 |
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'> & { |
