Properly handle LaTeX "math" environment as inline math.

See #2171.
This commit is contained in:
John MacFarlane 2016-01-29 10:11:45 -08:00
parent 373aaa8db3
commit 76983c31f2

View file

@ -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")