mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user