From c51be5dfc85024e68a4bd62c9ced748b27f968c0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 29 Oct 2018 22:20:14 -0700 Subject: LaTeX reader: allow space at end of math after `\`. Closes #5010. Expose trimMath from T.P.Shared. --- src/Text/Pandoc/Readers/LaTeX.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Readers') 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 -- cgit v1.2.3