@@ -625,9 +625,8 @@ table = failIfStrict >> (simpleTable <|> multilineTable) <?> "table"
626inline = choice [ str
626inline = choice [ str
627 , smartPunctuation
627 , smartPunctuation
630 , whitespace
628 , whitespace
632 , charRef
631 , charRef
@@ -766,11 +765,11 @@ enDash = try $ char '-' >> notFollowedBy (noneOf "0123456789") >> return EnDash
766emDash = try $ skipSpaces >> oneOfStrings ["---", "--"] >>
765emDash = try $ skipSpaces >> oneOfStrings ["---", "--"] >>
767 skipSpaces >> return EmDash
766 skipSpaces >> return EmDash
769−whitespace = (many1 (oneOf spaceChars) >> return Space) <?> "whitespace"
769+ sps <- many1 (oneOf spaceChars)
770−
770+ if length sps >= 2
772−linebreak = try $ oneOf spaceChars >> many1 (oneOf spaceChars) >>
773− endline >> return LineBreak
771+ then option Space (endline >> return LineBreak)
772+ else return Space <?> "whitespace"
775nonEndline = satisfy (/='\n')
774nonEndline = satisfy (/='\n')