Skip to content

Commit ee5b260

Browse files
committed
Update responsive-images.mdx
1 parent ba48de9 commit ee5b260

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

docs/src/content/docs/guides/responsive-images.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ head:
66
content: Responsive Images - Astro Cloudinary
77
---
88
import { CldImage } from '../../../../../astro-cloudinary';
9-
109
import CodeBlock from '../../../components/CodeBlock.astro';
1110
import HeaderImage from '../../../components/HeaderImage.astro';
1211

@@ -60,7 +59,7 @@ in order to provide the responsive sizing.
6059

6160
In the example above, the output would look like:
6261

63-
```
62+
```html
6463
<img
6564
class="astro-cloudinary-cldimage"
6665
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
@@ -118,7 +117,7 @@ In an example such as:
118117
import { CldImage } from 'astro-cloudinary';
119118

120119
<CldImage
121-
src="Public ID>"
120+
src="<Public ID>"
122121
width="<Width>"
123122
height="<Height>"
124123
crop="fill"
@@ -130,10 +129,10 @@ In an example such as:
130129

131130
Each image will be cropped to a 1:1 ratio represented by the width and height provided.
132131

133-
As the underlaying Unpic Image component generates an image for each responsive size,
132+
As the underlying Unpic Image component generates an image for each responsive size,
134133
Cloudinary will use those sizes when building the URL, for example:
135134

136-
```
135+
```html
137136
<img
138137
alt="Turtle"
139138
loading="lazy"
@@ -183,7 +182,7 @@ than a 640x640 image.
183182
import { CldImage } from 'astro-cloudinary';
184183

185184
<CldImage
186-
src="Public ID>"
185+
src="<Public ID>"
187186
width="<Width>"
188187
height="<Height>"
189188
crop="thumb"
@@ -195,7 +194,7 @@ than a 640x640 image.
195194

196195
The resulting transformations may look like:
197196

198-
```
197+
```text
199198
.../w_256,h_256,c_thumb/...
200199
.../w_384,h_384,c_thumb/...
201200
.../w_640,h_640,c_thumb/...
@@ -254,7 +253,7 @@ values by explicitly setting them.
254253

255254
The resulting transformations may look like:
256255

257-
```
256+
```text
258257
.../w_960,h_960,c_thumb/<Other Transformations>/w_256,h_256,c_limit/...
259258
.../w_960,h_960,c_thumb/<Other Transformations>/w_384,h_384,c_limit/...
260259
.../w_960,h_960,c_thumb/<Other Transformations>/w_640,h_640,c_limit/...

0 commit comments

Comments
 (0)