git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: fixed previous commit.
commitc139a011fa7a4b5bbbcb4b1f277dcb5ee733142f authorJohn MacFarlane <jgm@berkeley.edu> dateWed 25 Apr 2018, 23:47 (9 years ago) parent06bc037
1 file changed+3−3
src/Text/Pandoc/Readers/LaTeX.hs+3−3
src/Text/Pandoc/Readers/LaTeX.hs+3−3
@@ -286,18 +286,18 @@ rawLaTeXBlock = do
286286 lookAhead (try (char '\\' >> letter))
287287 -- we don't want to apply newly defined latex macros to their own
288288 -- definitions:
289− snd <$> rawLaTeXParser (environment <|> macroDef <|> blockCommand) block
289+ snd <$> rawLaTeXParser (environment <|> macroDef <|> blockCommand) blocks
290290
291291rawLaTeXInline :: (PandocMonad m, HasMacros s, HasReaderOptions s)
292292 => ParserT String s m String
293293rawLaTeXInline = do
294294 lookAhead (try (char '\\' >> letter))
295− snd <$> rawLaTeXParser (inlineEnvironment <|> inlineCommand') inline
295+ snd <$> rawLaTeXParser (inlineEnvironment <|> inlineCommand') inlines
296296
297297inlineCommand :: PandocMonad m => ParserT String ParserState m Inlines
298298inlineCommand = do
299299 lookAhead (try (char '\\' >> letter))
300− fst <$> rawLaTeXParser (inlineEnvironment <|> inlineCommand') inline
300+ fst <$> rawLaTeXParser (inlineEnvironment <|> inlineCommand') inlines
301301
302302tokenize :: SourceName -> Text -> [Tok]
303303tokenize sourcename = totoks (initialPos sourcename)