git.iko.soy/typeable/pandoc
on master help sign in
Textile reader: Allow newlines before pipes in table.

Closes #654.

commit7af45f78d12537c1bd5a2cac80bae0e18dc0961f authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 5 Nov 2012, 08:16 (14 years ago) parenta2c40c3
1 file changed+2−1
src/Text/Pandoc/Readers/Textile.hs+2−1
src/Text/Pandoc/Readers/Textile.hs+2−1
@@ -310,7 +310,8 @@ tableCell = do
310310
311311-- | A table row is made of many table cells
312312tableRow :: Parser [Char] ParserState [TableCell]
313−tableRow = try $ ( char '|' *> (endBy1 tableCell (char '|')) <* newline)
313+tableRow = try $ ( char '|' *>
314+ (endBy1 tableCell (optional blankline *> char '|')) <* newline)
314315
315316-- | Many table rows
316317tableRows :: Parser [Char] ParserState [[TableCell]]