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({
19
19
// Handle external images early - pass through without processing
20
20
if ( src . startsWith ( 'http' ) ) {
21
21
// 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
+
33
35
return (
34
36
< DocImageClient
35
37
src = { src }
You can’t perform that action at this time.
0 commit comments