summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-05-22 15:38:11 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-05-22 15:38:11 -0700
commit2e4860bc6dc88e1eb341a0d7cd09ca634e228105 (patch)
treed3ef5db2dc34dd61cc061b55a692417a7605dccc /src/Text
parent79a17ef9b9066c3b34e22d7e0ac54ae0bc6800e4 (diff)
LaTeX reader: Support `\centerline`.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 36ff3fb96..3178945e4 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -268,6 +268,7 @@ blockCommands = M.fromList $
, ("end", mzero)
, ("item", skipopts *> loose_item)
, ("documentclass", skipopts *> braced *> preamble)
+ , ("centerline", (para . trimInlines) <$> (skipopts *> tok))
] ++ map ignoreBlocks
-- these commands will be ignored unless --parse-raw is specified,
-- in which case they will appear as raw latex blocks