diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2020-11-26 22:04:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 12:04:31 -0800 |
commit | 630b1bff2bba436cfba8dcb19845af394aa0dee2 (patch) | |
tree | 97bb9832c55f1c9baa65c0adf23c46e7020293be /src/Text/Pandoc | |
parent | 07919e1b2270a906019575e4ce85590d6754d41c (diff) | |
download | pandoc-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')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
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" $ |