aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2020-11-26 22:04:31 +0200
committerGitHub <noreply@github.com>2020-11-26 12:04:31 -0800
commit630b1bff2bba436cfba8dcb19845af394aa0dee2 (patch)
tree97bb9832c55f1c9baa65c0adf23c46e7020293be /src/Text/Pandoc/Readers/LaTeX.hs
parent07919e1b2270a906019575e4ce85590d6754d41c (diff)
downloadpandoc-630b1bff2bba436cfba8dcb19845af394aa0dee2.tar.gz
LaTeX reader: preserve center environment (#6852)
The contents of the `center` environment are put in a `Div` with class `center`.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 9b6cc0e3f..2a9bff746 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1646,7 +1646,7 @@ environments = M.fromList
skipopts *> spaces *> optional braced *> spaces *> blocks)
, ("figure", env "figure" $ skipopts *> figure)
, ("subfigure", env "subfigure" $ skipopts *> tok *> figure)
- , ("center", env "center" blocks)
+ , ("center", divWith ("", ["center"], []) <$> env "center" blocks)
, ("longtable", env "longtable" $
resetCaption *> simpTable "longtable" False >>= addTableCaption)
, ("table", env "table" $