From d6d4388f6f738f99c4b337645a1de715e699114d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 30 Dec 2017 22:43:46 -0800 Subject: LaTeX reader: Simplified a check for raw tex command. --- src/Text/Pandoc/Readers/LaTeX.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index e0972bb6c..a0447962c 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -280,12 +280,12 @@ rawLaTeXBlock = do rawLaTeXInline :: (PandocMonad m, HasMacros s, HasReaderOptions s) => ParserT String s m String rawLaTeXInline = do - lookAhead (try (char '\\' >> letter) <|> char '$') + lookAhead (try (char '\\' >> letter)) rawLaTeXParser (inlineEnvironment <|> inlineCommand') >>= applyMacros . snd inlineCommand :: PandocMonad m => ParserT String ParserState m Inlines inlineCommand = do - lookAhead (try (char '\\' >> letter) <|> char '$') + lookAhead (try (char '\\' >> letter)) fst <$> rawLaTeXParser (inlineEnvironment <|> inlineCommand') tokenize :: SourceName -> Text -> [Tok] -- cgit v1.2.3