mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-13 00:54:20 +01:00
Refine implementation of MD045/no-alt-text in previous commit.
This commit is contained in:
parent
4fa837a031
commit
f91f0880c3
7 changed files with 61 additions and 44 deletions
|
|
@ -16,10 +16,4 @@ MarkDownLint.
|
|||
|
||||
A [normal](link) and an [empty one]() and a [fragment](#one).
|
||||
|
||||
An image without alt text 
|
||||
|
||||

|
||||
|
||||
A reference image without alt text ![][reference]
|
||||
|
||||
[reference]: image.jpg "title"
|
||||
An image without alternate text 
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
"errorRange": [25, 13]
|
||||
},
|
||||
{
|
||||
"lineNumber": 25,
|
||||
"lineNumber": 20,
|
||||
"ruleName": "MD043",
|
||||
"ruleAlias": "required-headers",
|
||||
"ruleDescription": "Required header structure",
|
||||
|
|
@ -84,25 +84,7 @@
|
|||
"lineNumber": 19,
|
||||
"ruleName": "MD045",
|
||||
"ruleAlias": "no-alt-text",
|
||||
"ruleDescription": "Images should have ALT Text attribute",
|
||||
"errorDetail": null,
|
||||
"errorContext": null,
|
||||
"errorRange": null
|
||||
},
|
||||
{
|
||||
"lineNumber": 21,
|
||||
"ruleName": "MD045",
|
||||
"ruleAlias": "no-alt-text",
|
||||
"ruleDescription": "Images should have ALT Text attribute",
|
||||
"errorDetail": null,
|
||||
"errorContext": null,
|
||||
"errorRange": null
|
||||
},
|
||||
{
|
||||
"lineNumber": 23,
|
||||
"ruleName": "MD045",
|
||||
"ruleAlias": "no-alt-text",
|
||||
"ruleDescription": "Images should have ALT Text attribute",
|
||||
"ruleDescription": "Images should have alternate text (alt text)",
|
||||
"errorDetail": null,
|
||||
"errorContext": null,
|
||||
"errorRange": null
|
||||
|
|
|
|||
|
|
@ -1,3 +1,26 @@
|
|||
# This is an image link without any alt text
|
||||
# Images with and without alternate text
|
||||
|
||||
 {MD045}
|
||||

|
||||
|
||||
 {MD045}
|
||||
|
||||

|
||||
|
||||
 {MD045}
|
||||
|
||||
Image without alternate text  in a sentence. {MD045}
|
||||
|
||||
Reference image with alternate text ![Alternate text][notitle]
|
||||
|
||||
Reference image without alternate text ![][notitle] {MD045}
|
||||
|
||||
Reference image with alternate text and title ![Alternate text][title]
|
||||
|
||||
Reference image without alternate text and title ![][title] {MD045}
|
||||
|
||||
Link to image with alternate text [](image.jpg)
|
||||
|
||||
Link to image without alternate text [](image.jpg) {MD045}
|
||||
|
||||
[notitle]: image.jpg
|
||||
[title]: image.jpg "Title"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue