diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-07-01 20:47:26 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-07-01 20:47:26 -0700 |
commit | 956425709d63b01c801ebb91dd867a08bfe76eb0 (patch) | |
tree | 740467cd43a9d54f4e80bd89e8160ef9776b4f91 /src/Text/Pandoc/Writers/LaTeX.hs | |
parent | 19ad69b1c67e364fbd7740ddadfc01ce25fac56f (diff) | |
download | pandoc-956425709d63b01c801ebb91dd867a08bfe76eb0.tar.gz |
Created Text.Pandoc.Writers.Shared, improved metaToJSON.
* Text.Pandoc.Writers.Shared contains shared functions used
only in writers.
* metaToJSON now takes a WriterOptions parameter, and will
return an empty object if standalone is not specified.
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 00c6d5b0f..76ec31d58 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -32,6 +32,7 @@ module Text.Pandoc.Writers.LaTeX ( writeLaTeX ) where import Text.Pandoc.Definition import Text.Pandoc.Generic import Text.Pandoc.Shared +import Text.Pandoc.Writers.Shared import Text.Pandoc.Options import Text.Pandoc.Templates import Text.Printf ( printf ) @@ -103,10 +104,9 @@ pandocToLaTeX options (Pandoc meta blocks) = do let colwidth = if writerWrapText options then Just $ writerColumns options else Nothing - metadata <- metaToJSON + metadata <- metaToJSON options (fmap (render colwidth) . blockListToLaTeX) (fmap (render colwidth) . inlineListToLaTeX) - (writerVariables options) meta let (blocks', lastHeader) = if writerCiteMethod options == Citeproc then (blocks, []) |