aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index c965c65ce..a6b7cc19a 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -511,7 +511,8 @@ demacro (n,st,args) = try $ do
unknownCommand :: GenParser Char ParserState Block
unknownCommand = try $ do
spaces
- notFollowedBy' $ oneOfStrings ["\\begin","\\end","\\item"]
+ notFollowedBy' $ oneOfStrings ["\\begin","\\end","\\item"] >>
+ notFollowedBy letter
state <- getState
when (stateParserContext state == ListItemState) $
notFollowedBy' (string "\\item")