mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
74 lines
1.8 KiB
Markdown
74 lines
1.8 KiB
Markdown
# Images with and without alternate text
|
|
|
|

|
|
|
|
 {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}
|
|
|
|
Multi-line image with alternate text 
|
|
|
|
Multi-line image without alternate text  {MD045:28}
|
|
|
|
<!-- markdownlint-disable no-inline-html -->
|
|
|
|
Image tag with alt attribute set to text
|
|
<img src="image.png" alt="Descriptive text" />
|
|
|
|
Image tag with alt attribute not set
|
|
<img src="image.png" alt> {MD045}
|
|
|
|
Image tag with alt attribute set to decorative with an empty double-quote string
|
|
<img src="image.png" alt="" />
|
|
|
|
Image tag with alt attribute set to decorative with an empty single-quote string
|
|
<img src="image.png" alt='' />
|
|
|
|
Image tag with no alt attribute <img src="image.png" /> {MD045}
|
|
|
|
Multi-line image tag with no alt text
|
|
<img
|
|
src="image.png"> {MD045:48}
|
|
|
|
Multi-line image tag with alt attribute not set
|
|
<img
|
|
src="image.png"
|
|
alt> {MD045:52}
|
|
|
|
Multi-line image tag with alt text
|
|
<img
|
|
src="image.png"
|
|
alt="Description"
|
|
>
|
|
|
|
Uppercase image tag with alt attribute set
|
|
<IMG SRC="cat.png" ALT="Descriptive text">
|
|
|
|
Uppercase image tag with no alt set <IMG SRC="cat.png" /> {MD045}
|
|
|
|
<p>
|
|
<img src="image.png" /> {MD045}
|
|
</p>
|
|
|
|
<!-- markdownlint-restore no-inline-html -->
|
|
|
|
[notitle]: image.jpg
|
|
[title]: image.jpg "Title"
|