aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2021-06-12 17:01:50 +0200
committerIgor Pashev <pashev.igor@gmail.com>2021-06-12 17:17:46 +0200
commit0a1eef2cbedeafe5a04e932ba4b22bf7b3e999c5 (patch)
treed356e02183c0c50ec40398b58a6d6743a6ba34ac /src
parent707c6d1d448284efff002eb1866f31fc31cef7b3 (diff)
downloadpandoc-0a1eef2cbedeafe5a04e932ba4b22bf7b3e999c5.tar.gz
LaTeX: add flushright/flushleft
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 7b942aed9..2ec593974 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1651,6 +1651,8 @@ environments = M.fromList
, ("figure", env "figure" $ skipopts *> figure)
, ("subfigure", env "subfigure" $ skipopts *> tok *> figure)
, ("center", divWith ("", ["center"], []) <$> env "center" blocks)
+ , ("flushright", divWith ("", ["flushright"], []) <$> env "flushright" blocks)
+ , ("flushleft", divWith ("", ["flushleft"], []) <$> env "flushleft" blocks)
, ("longtable", env "longtable" $
resetCaption *> simpTable "longtable" False >>= addTableCaption)
, ("table", env "table" $