From 612f1238aafc169f220d63611442a550c3ed0b83 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 20 Feb 2017 22:21:20 +0100 Subject: Use lazy loading for reveal.js slide shows. * In HTML writer, with reveal.js we use data-src instead of src for images. * In SelfContained, we also load resources from data-src. Closes #2283. --- src/Text/Pandoc/SelfContained.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/SelfContained.hs') diff --git a/src/Text/Pandoc/SelfContained.hs b/src/Text/Pandoc/SelfContained.hs index 85b298a85..5258aa5f7 100644 --- a/src/Text/Pandoc/SelfContained.hs +++ b/src/Text/Pandoc/SelfContained.hs @@ -73,7 +73,7 @@ convertTag media sourceURL t@(TagOpen tagname as) as' <- mapM processAttribute as return $ TagOpen tagname as' where processAttribute (x,y) = - if x == "src" || x == "href" || x == "poster" + if x == "src" || x == "data-src" || x == "href" || x == "poster" then do enc <- getDataURI media sourceURL (fromAttrib "type" t) y return (x, enc) -- cgit v1.2.3