Skip to content

Commit 30c260b

Browse files
committed
fix alt prop bug
1 parent c68596c commit 30c260b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/docImage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function DocImage({
3939
imgPath={src} // For external images, imgPath should be the same as src
4040
width={width}
4141
height={height}
42-
alt=""
42+
alt={props.alt ?? ""}
4343
{...props}
4444
/>
4545
);
@@ -96,7 +96,7 @@ export default function DocImage({
9696
imgPath={imgPath}
9797
width={width}
9898
height={height}
99-
alt=""
99+
alt={props.alt ?? ""}
100100
{...props}
101101
/>
102102
);

0 commit comments

Comments
 (0)