aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-29 22:20:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-29 22:20:14 -0700
commitc51be5dfc85024e68a4bd62c9ced748b27f968c0 (patch)
treedbd4672da32fd268f7359f5c9284a5178e1e7ca3 /src/Text/Pandoc/Readers
parent9e3a2b61ec46bc8a49eb7064a824a1f07d55144e (diff)
downloadpandoc-c51be5dfc85024e68a4bd62c9ced748b27f968c0.tar.gz
LaTeX reader: allow space at end of math after `\`.
Closes #5010. Expose trimMath from T.P.Shared.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 010cb3add..1d35cd662 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -605,10 +605,10 @@ accent combiningAccent fallBack = try $ do
[] -> return $ str [fromMaybe combiningAccent fallBack]
_ -> return ils
mathDisplay :: String -> Inlines
-mathDisplay = displayMath . trim
+mathDisplay = displayMath . trimMath
mathInline :: String -> Inlines
-mathInline = math . trim
+mathInline = math . trimMath
dollarsMath :: PandocMonad m => LP m Inlines
dollarsMath = do