git.iko.soy/typeable/pandoc
on master help sign in
Properly handle LaTeX "math" environment as inline math.

See #2171.

commit76983c31f29772b54fb72c1c7d847dfae218a2ea authorJohn MacFarlane <jgm@berkeley.edu> dateFri 29 Jan 2016, 10:11 (11 years ago) parent373aaa8
1 file changed+1
src/Text/Pandoc/Readers/LaTeX.hs+1
src/Text/Pandoc/Readers/LaTeX.hs+1
@@ -435,6 +435,7 @@ isBlockCommand s = s `M.member` blockCommands
435435inlineEnvironments :: M.Map String (LP Inlines)
436436inlineEnvironments = M.fromList
437437 [ ("displaymath", mathEnv id Nothing "displaymath")
438+ , ("math", math <$> verbEnv "math")
438439 , ("equation", mathEnv id Nothing "equation")
439440 , ("equation*", mathEnv id Nothing "equation*")
440441 , ("gather", mathEnv id (Just "gathered") "gather")