File tree 2 files changed +3
-1
lines changed
react-notion-x/src/components
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ export interface BaseContentBlock extends BaseBlock {
131
131
properties : {
132
132
source : string [ ] [ ]
133
133
caption ?: Decoration [ ]
134
+ alt_text ?: Decoration [ ]
134
135
}
135
136
format ?: {
136
137
block_alignment : 'center' | 'left' | 'right'
Original file line number Diff line number Diff line change @@ -280,8 +280,9 @@ export function Asset({
280
280
source = block . properties ?. source ?. [ 0 ] ?. [ 0 ]
281
281
}
282
282
const src = mapImageUrl ( source , block as Block )
283
+ const altText = getTextContent ( block . properties ?. alt_text )
283
284
const caption = getTextContent ( block . properties ?. caption )
284
- const alt = caption || 'notion image'
285
+ const alt = altText || caption || 'notion image'
285
286
286
287
content = (
287
288
< LazyImage
You can’t perform that action at this time.
0 commit comments