File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,19 @@ export default function DocImage({
1919 // Handle external images early - pass through without processing
2020 if ( src . startsWith ( 'http' ) ) {
2121 // Use provided props or defaults for external images
22- const width = typeof propsWidth === 'number'
23- ? propsWidth
24- : typeof propsWidth === 'string'
25- ? parseInt ( propsWidth , 10 ) || 800
26- : 800 ;
27- const height = typeof propsHeight === 'number'
28- ? propsHeight
29- : typeof propsHeight === 'string'
30- ? parseInt ( propsHeight , 10 ) || 600
31- : 600 ;
32-
22+ const width =
23+ typeof propsWidth === 'number'
24+ ? propsWidth
25+ : typeof propsWidth === 'string'
26+ ? parseInt ( propsWidth , 10 ) || 800
27+ : 800 ;
28+ const height =
29+ typeof propsHeight === 'number'
30+ ? propsHeight
31+ : typeof propsHeight === 'string'
32+ ? parseInt ( propsHeight , 10 ) || 600
33+ : 600 ;
34+
3335 return (
3436 < DocImageClient
3537 src = { src }
You can’t perform that action at this time.
0 commit comments