diff --git a/src/components/asset.tsx b/src/components/asset.tsx index c03cac8..f91bef5 100644 --- a/src/components/asset.tsx +++ b/src/components/asset.tsx @@ -45,6 +45,7 @@ const Asset: React.FC<{ if (block.value.type === "image") { const src = mapImageUrl(value.properties.source[0][0], block); const caption = value.properties.caption?.[0][0]; + const altText = value.properties.alt_text?.[0][0]; if (block_aspect_ratio) { return ( @@ -56,7 +57,7 @@ const Asset: React.FC<{ > {caption diff --git a/src/types.ts b/src/types.ts index 7cf1d66..d721ea5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -197,6 +197,7 @@ export interface ContentValueType extends BaseValueType { properties: { source: string[][]; caption?: DecorationType[]; + alt_text?: string[][]; }; format?: { block_width: number;