mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update MD045/no-alt-text to report instances of HTML "img" tags missing an "alt" attribute (fixes #992).
This commit is contained in:
parent
0afedaebf4
commit
531e58ed9a
18 changed files with 274 additions and 25 deletions
|
@ -1955,6 +1955,12 @@ Or with reference syntax as:
|
|||
[ref]: image.jpg "Optional title"
|
||||
```
|
||||
|
||||
Or with HTML as:
|
||||
|
||||
```html
|
||||
<img src="image.jpg" alt="Alternate text" />
|
||||
```
|
||||
|
||||
Guidance for writing alternate text is available from the [W3C][w3c],
|
||||
[Wikipedia][wikipedia], and [other locations][phase2technology].
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue