From b894de64264fe0386b5cb3e1680955a8e879c78e Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 1 Jul 2020 14:44:42 +0200 Subject: HTML writer: improve alt-text/caption handling for HTML5 Screen readers read an image's `alt` attribute and the figure caption, both of which come from the same source in pandoc. The figure caption is hidden from screen readers with the `aria-hidden` attribute. This improves accessibility. For HTML4, where `aria-hidden` is not allowed, pandoc still uses an empty `alt` attribute to avoid duplicate contents. Closes: #6491 --- test/command/3577.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/command/3577.md') diff --git a/test/command/3577.md b/test/command/3577.md index d1df1610d..2f415146d 100644 --- a/test/command/3577.md +++ b/test/command/3577.md @@ -16,10 +16,10 @@ \end{figure} ^D
-
Caption 1
+Caption 1
-
Caption 2
+Caption 2
``` ``` @@ -30,6 +30,6 @@ \end{figure} ^D
-
Caption 3
+Caption 3
``` -- cgit v1.2.3