aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/EPUB.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 /src/Text/Pandoc/Writers/EPUB.hs
parent23d806644f07e1df35b946bfac63d877005df443 (diff)
downloadpandoc-e4913d6dba1d413715fb68fd91683ab7b321bec8.tar.gz
Allow --self-contained to get content from MediaBag.
Added a parameter to makeSelfContained (API change).
Diffstat (limited to 'src/Text/Pandoc/Writers/EPUB.hs')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 682b61d78..1f222b8b8 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -793,7 +793,7 @@ transformInline opts mediaRef (Image lab (src,tit)) = do
return $ Image lab (newsrc, tit)
transformInline opts _ (x@(Math _ _))
| WebTeX _ <- writerHTMLMathMethod opts = do
- raw <- makeSelfContained Nothing $ writeHtmlInline opts x
+ raw <- makeSelfContained M.empty Nothing $ writeHtmlInline opts x
return $ RawInline (Format "html") raw
transformInline opts mediaRef (RawInline fmt raw)
| fmt == Format "html" = do