From c63e490ab2c33acf6ae06b6d8ef5043510a08a65 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 20 May 2013 10:43:12 -0700 Subject: MediaWiki reader: Skip attributes on table rows. Previously we just crashed if rows had attributes, now we ignore them. --- src/Text/Pandoc/Readers/MediaWiki.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs index c4d169af0..2e8ad27e5 100644 --- a/src/Text/Pandoc/Readers/MediaWiki.hs +++ b/src/Text/Pandoc/Readers/MediaWiki.hs @@ -228,7 +228,8 @@ tableEnd :: MWParser () tableEnd = try $ guardColumnOne *> skipSpaces *> sym "|}" rowsep :: MWParser () -rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <* blanklines +rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <* + optional (void parseAttr) <* blanklines cellsep :: MWParser () cellsep = try $ -- cgit v1.2.3