3
3
exports [` it handles goofy nesting properly 1` ] = `
4
4
"<span
5
5
class =\\"gatsby-resp-image-wrapper\\"
6
- style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\"
6
+ style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\"
7
7
>
8
8
<span
9
9
class =\\"gatsby-resp-image-background-image\\"
@@ -24,7 +24,7 @@ exports[`it handles goofy nesting properly 1`] = `
24
24
exports [` it leaves images that are already linked alone 1` ] = `
25
25
"<span
26
26
class =\\"gatsby-resp-image-wrapper\\"
27
- style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\"
27
+ style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\"
28
28
>
29
29
<span
30
30
class =\\"gatsby-resp-image-background-image\\"
@@ -44,23 +44,23 @@ exports[`it leaves images that are already linked alone 1`] = `
44
44
45
45
exports [` it leaves linked HTML img tags alone 1` ] = `
46
46
"<a href =\\"https://example.org\\">
47
- <span class =\\"gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\">
47
+ <span class =\\"gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\">
48
48
<span class =\\"gatsby-resp-image-background-image\\" style =\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
49
49
<img class =\\"gatsby-resp-image-image\\" style =\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;box-shadow:inset 0px 0px 0px 400px white;\\" alt =\\"this image already has a link\\" title =\\"\\" src =\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" srcset =\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg, not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" sizes =\\"(max-width: 650px) 100vw, 650px\\">
50
50
</span>
51
51
</a>"
52
52
`;
53
53
54
54
exports[`it leaves single-line linked HTML img tags alone 1`] = `
55
- " <span class=\\" gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\">
55
+ " <span class=\\" gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\">
56
56
<span class =\\"gatsby-resp-image-background-image\\" style =\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
57
57
<img class =\\"gatsby-resp-image-image\\" style =\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;box-shadow:inset 0px 0px 0px 400px white;\\" alt =\\"this image already has a link\\" title =\\"\\" src =\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" srcset =\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg, not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" sizes =\\"(max-width: 650px) 100vw, 650px\\">
58
58
</span>"
59
59
`;
60
60
61
61
exports[`it transforms HTML img tags 1`] = `
62
62
" <a class=\\" gatsby-resp-image-link\\" href =\\"not-a-real-dir/image/my-image.jpeg\\" style =\\"display: block\\" target =\\"_blank\\" rel =\\"noopener\\">
63
- <span class =\\"gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\">
63
+ <span class =\\"gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\">
64
64
<span class =\\"gatsby-resp-image-background-image\\" style =\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
65
65
<img class =\\"gatsby-resp-image-image\\" style =\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;box-shadow:inset 0px 0px 0px 400px white;\\" alt =\\"my image\\" title =\\"\\" src =\\"not-a-real-dir/image/my-image.jpeg\\" srcset =\\"not-a-real-dir/image/my-image.jpeg, not-a-real-dir/image/my-image.jpeg\\" sizes =\\"(max-width: 650px) 100vw, 650px\\">
66
66
</span>
@@ -69,7 +69,7 @@ exports[`it transforms HTML img tags 1`] = `
69
69
70
70
exports[`it transforms HTML img tags with query strings 1`] = `
71
71
" <a class=\\" gatsby-resp-image-link\\" href =\\"not-a-real-dir/image/my-image.jpeg\\" style =\\"display: block\\" target =\\"_blank\\" rel =\\"noopener\\">
72
- <span class =\\"gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\">
72
+ <span class =\\"gatsby-resp-image-wrapper\\" style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\">
73
73
<span class =\\"gatsby-resp-image-background-image\\" style =\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
74
74
<img class =\\"gatsby-resp-image-image\\" style =\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;box-shadow:inset 0px 0px 0px 400px white;\\" alt =\\"my image\\" title =\\"\\" src =\\"not-a-real-dir/image/my-image.jpeg\\" srcset =\\"not-a-real-dir/image/my-image.jpeg, not-a-real-dir/image/my-image.jpeg\\" sizes =\\"(max-width: 650px) 100vw, 650px\\">
75
75
</span>
@@ -86,7 +86,7 @@ exports[`it transforms image references in markdown 1`] = `
86
86
>
87
87
<span
88
88
class =\\"gatsby-resp-image-wrapper\\"
89
- style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\"
89
+ style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\"
90
90
>
91
91
<span
92
92
class =\\"gatsby-resp-image-background-image\\"
@@ -115,7 +115,7 @@ exports[`it transforms images in markdown 1`] = `
115
115
>
116
116
<span
117
117
class =\\"gatsby-resp-image-wrapper\\"
118
- style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\"
118
+ style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\"
119
119
>
120
120
<span
121
121
class =\\"gatsby-resp-image-background-image\\"
@@ -144,7 +144,7 @@ exports[`it transforms images in markdown with query strings 1`] = `
144
144
>
145
145
<span
146
146
class =\\"gatsby-resp-image-wrapper\\"
147
- style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\"
147
+ style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\"
148
148
>
149
149
<span
150
150
class =\\"gatsby-resp-image-background-image\\"
@@ -173,7 +173,7 @@ exports[`it uses tracedSVG placeholder when enabled 1`] = `
173
173
>
174
174
<span
175
175
class =\\"gatsby-resp-image-wrapper\\"
176
- style =\\"position: relative; display: block; max-width: 300px ; margin-left : auto; margin-right: auto ;\\"
176
+ style =\\"position: relative; display: block; margin-left: auto ; margin-right : auto; max-width: 300px ;\\"
177
177
>
178
178
<span
179
179
class =\\"gatsby-resp-image-background-image\\"
0 commit comments