From 3f57f49033d78fab158af77983611ffcb5cac4bc Mon Sep 17 00:00:00 2001 From: Mauro Bieg Date: Tue, 28 May 2019 18:31:41 +0200 Subject: HTML writer: emit empty alt tag in figures (#5518) The same text is already in the
and screen-readers would read it twice, see #4737 --- src/Text/Pandoc/Writers/HTML.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 2c386b465..5004f4111 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -681,7 +681,7 @@ figure :: PandocMonad m => WriterOptions -> Attr -> [Inline] -> (String, String) -> StateT WriterState m Html figure opts attr txt (s,tit) = do - img <- inlineToHtml opts (Image attr txt (s,tit)) + img <- inlineToHtml opts (Image attr [Str ""] (s,tit)) html5 <- gets stHtml5 let tocapt = if html5 then H5.figcaption -- cgit v1.2.3