We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3991343 commit 715c791Copy full SHA for 715c791
packages/notion-types/src/block.ts
@@ -131,6 +131,7 @@ export interface BaseContentBlock extends BaseBlock {
131
properties: {
132
source: string[][]
133
caption?: Decoration[]
134
+ alt_text?: Decoration[]
135
}
136
format?: {
137
block_alignment: 'center' | 'left' | 'right'
packages/react-notion-x/src/components/asset.tsx
@@ -281,7 +281,8 @@ export function Asset({
281
282
const src = mapImageUrl(source, block as Block)
283
const caption = getTextContent(block.properties?.caption)
284
- const alt = caption || 'notion image'
+ const altText = getTextContent(block.properties?.alt_text)
285
+ const alt = altText || caption || 'notion image'
286
287
content = (
288
<LazyImage
0 commit comments