Skip to content

Commit a88f7b7

Browse files
authored
Change syntax of images to Kramdown (#12473)
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
1 parent e3e6897 commit a88f7b7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FORMATTING_GUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,16 @@ Markdown images are responsive by default. To insert a Markdown image, use the `
284284

285285
Markdown uses the image’s actual width to render it. It sets the maximum image width to the width of the main body panel.
286286

287-
If you want to specify the image width or another style, use HTML syntax:
287+
If you want to specify the image width, use Kramdown's inline attribute syntax after the image:
288288

289289
```
290-
<img src="{{site.url}}{{site.baseurl}}/images/brand.png" alt="OS branding" width="700"/>
290+
![OS branding]({{site.url}}{{site.baseurl}}/images/brand.png){: width="700" }
291291
```
292292

293293
You can specify width as a hard-coded number of pixels, as in the preceding example, or as a percentage of the parent width:
294294

295295
```
296-
<img src="{{site.url}}{{site.baseurl}}/images/brand.png" alt="OS branding" width="70%"/>
296+
![OS branding]({{site.url}}{{site.baseurl}}/images/brand.png){: width="70%" }
297297
```
298298

299299
To stretch the image to fit the width of the main body panel, use width=“100%”.

0 commit comments

Comments
 (0)