aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-29 10:11:45 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-29 10:11:45 -0800
commit76983c31f29772b54fb72c1c7d847dfae218a2ea (patch)
tree897c0f0e61bbd64c54622eeb4f16003e2acd4c90 /src/Text/Pandoc
parent373aaa8db34427c3eb7a9c7ea9bfe4e042b10bda (diff)
downloadpandoc-76983c31f29772b54fb72c1c7d847dfae218a2ea.tar.gz
Properly handle LaTeX "math" environment as inline math.
See #2171.
Diffstat (limited to 'src/Text/Pandoc')
-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 4b30725aa..2acce8ece 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -435,6 +435,7 @@ isBlockCommand s = s `M.member` blockCommands
inlineEnvironments :: M.Map String (LP Inlines)
inlineEnvironments = M.fromList
[ ("displaymath", mathEnv id Nothing "displaymath")
+ , ("math", math <$> verbEnv "math")
, ("equation", mathEnv id Nothing "equation")
, ("equation*", mathEnv id Nothing "equation*")
, ("gather", mathEnv id (Just "gathered") "gather")