diff options
author | Mauro Bieg <mb21@users.noreply.github.com> | 2019-05-28 18:31:41 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-05-28 12:31:41 -0400 |
commit | 3f57f49033d78fab158af77983611ffcb5cac4bc (patch) | |
tree | a97af38267738c5975b2aabcff0d0807c2e45323 /test/command | |
parent | 0e2d6561bef9b0558b0bd96fa06e748a51219d88 (diff) | |
download | pandoc-3f57f49033d78fab158af77983611ffcb5cac4bc.tar.gz |
HTML writer: emit empty alt tag in figures (#5518)
The same text is already in the <figcaption> and
screen-readers would read it twice, see #4737
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/3577.md | 6 | ||||
-rw-r--r-- | test/command/4677.md | 2 | ||||
-rw-r--r-- | test/command/5121.md | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/command/3577.md b/test/command/3577.md index dc88937e9..d1df1610d 100644 --- a/test/command/3577.md +++ b/test/command/3577.md @@ -16,10 +16,10 @@ \end{figure} ^D <figure> -<img src="img1.jpg" alt="Caption 1" /><figcaption>Caption 1</figcaption> +<img src="img1.jpg" alt="" /><figcaption>Caption 1</figcaption> </figure> <figure> -<img src="img2.jpg" alt="Caption 2" /><figcaption>Caption 2</figcaption> +<img src="img2.jpg" alt="" /><figcaption>Caption 2</figcaption> </figure> ``` ``` @@ -30,6 +30,6 @@ \end{figure} ^D <figure> -<img src="img1.jpg" alt="Caption 3" /><figcaption>Caption 3</figcaption> +<img src="img1.jpg" alt="" /><figcaption>Caption 3</figcaption> </figure> ``` diff --git a/test/command/4677.md b/test/command/4677.md index 0343cf42a..11a62fd08 100644 --- a/test/command/4677.md +++ b/test/command/4677.md @@ -3,6 +3,6 @@ ![Caption](img.png){#img:1} ^D <figure> -<img src="img.png" alt="Caption" id="img:1" /><figcaption>Caption</figcaption> +<img src="img.png" alt="" id="img:1" /><figcaption>Caption</figcaption> </figure> ``` diff --git a/test/command/5121.md b/test/command/5121.md index 9003cdfec..0f45c4afe 100644 --- a/test/command/5121.md +++ b/test/command/5121.md @@ -5,7 +5,7 @@ ## Header 2 ^D <figure> -<img src="./my-figure.jpg" alt="My caption" width="500" /><figcaption>My caption</figcaption> +<img src="./my-figure.jpg" alt="" width="500" /><figcaption>My caption</figcaption> </figure> Header 2 |