summaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-07-30 15:26:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-07-30 15:26:40 -0700
commite4913d6dba1d413715fb68fd91683ab7b321bec8 (patch)
tree8e20d225d3678e12bd8f176166981b09522e20d6 /pandoc.hs
parent23d806644f07e1df35b946bfac63d877005df443 (diff)
Allow --self-contained to get content from MediaBag.
Added a parameter to makeSelfContained (API change).
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/pandoc.hs b/pandoc.hs
index b1666d306..2cd161907 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -1281,7 +1281,9 @@ main = do
["html","html+lhs","html5","html5+lhs",
"s5","slidy","slideous","dzslides","revealjs"]
selfcontain = if selfContained && htmlFormat
- then makeSelfContained datadir
+ then makeSelfContained
+ (writerMediaBag writerOptions')
+ (writerUserDataDir writerOptions')
else return
handleEntities = if htmlFormat && ascii
then toEntities