summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/SelfContained.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-20 22:21:20 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-20 22:21:20 +0100
commit612f1238aafc169f220d63611442a550c3ed0b83 (patch)
treea00000b1a851a6b5d6adb77dbba68c8baf96409c /src/Text/Pandoc/SelfContained.hs
parent8b9448aa17e330f9ff25fc7ddf909151fb876132 (diff)
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.
Diffstat (limited to 'src/Text/Pandoc/SelfContained.hs')
-rw-r--r--src/Text/Pandoc/SelfContained.hs2
1 files changed, 1 insertions, 1 deletions
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)