MediaWiki reader: Skip attributes on table rows.
Previously we just crashed if rows had attributes, now we
ignore them.
commitc63e490ab2c33acf6ae06b6d8ef5043510a08a65
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 20 May 2013, 10:43 (13 years ago)
parentb89a443
src/Text/Pandoc/Readers/MediaWiki.hs+2−1
@@ -228,7 +228,8 @@ tableEnd :: MWParser ()
228228tableEnd = try $ guardColumnOne *> skipSpaces *> sym "|}"
229229
230230rowsep :: MWParser ()
231−rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <* blanklines
231+rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <*
232+ optional (void parseAttr) <* blanklines
232233
233234cellsep :: MWParser ()
234235cellsep = try $