Skip to content

Commit 232fed6

Browse files
Refine image markdown syntax for size attributes
There needs to be a space before the = sign otherwise the specified size is ignored
1 parent 293a943 commit 232fed6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/syntax/images.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ For inline images, the alt text always overrides any title specified in the Mark
8080
Image sizing is specified through the title argument. You can specify just the size without needing to provide a redundant title:
8181

8282
```markdown
83-
![alt](img.png "=WxH")
84-
![alt](img.png "=W")
83+
![alt](img.png " =WxH")
84+
![alt](img.png " =W")
8585
```
8686

8787
In this case, the alt text will be used as both the `alt` and `title` attributes, and the size parameters will be applied.
@@ -91,9 +91,9 @@ In this case, the alt text will be used as both the `alt` and `title` attributes
9191
If `H` is omitted `W` is used as the height as well.
9292

9393
```markdown
94-
![alt](img.png "=250x330")
95-
![alt](img.png "=50%x40%")
96-
![alt](img.png "=50%")
94+
![alt](img.png " =250x330")
95+
![alt](img.png " =50%x40%")
96+
![alt](img.png " =50%")
9797
```
9898

9999

0 commit comments

Comments
 (0)