From 14dba12f9058790a5ea4d29d44e044b5f1213c23 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 9 Sep 2012 18:27:52 -0700 Subject: LaTeX reader: guard against "begin"/"end" in blockCommand. --- src/Text/Pandoc/Readers/LaTeX.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 64696d053..b0a3a97e6 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -214,6 +214,7 @@ blocks = mconcat <$> many block blockCommand :: LP Blocks blockCommand = try $ do name <- anyControlSeq + guard $ name /= "begin" && name /= "end" star <- option "" (string "*" <* optional sp) let name' = name ++ star case M.lookup name' blockCommands of -- cgit v1.2.3