Skip to content

Commit

Permalink
Make the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Dec 29, 2017
1 parent 33fdb58 commit cab1b1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Text/MMark/Parser.hs
Expand Up @@ -456,9 +456,10 @@ pTable = do
where
cell = do
startPos <- getPosition
chs <- many . label "inline content" $
escapedChar <|> satisfy cellChar
return (IspSpan startPos (T.stripEnd $ T.pack chs))
txt <- fmap (T.stripEnd . bakeText) . foldMany . choice $
[ (++) . reverse . T.unpack <$> hidden (string "\\|")
, (:) <$> label "inline content" (satisfy cellChar) ]
return (IspSpan startPos txt)
cellChar x = x /= '|' && notNewline x
rowWrapper p = do
void (optional pipe)
Expand Down

0 comments on commit cab1b1c

Please sign in to comment.