git.iko.soy/typeable/pandoc
on master help sign in
MediaWiki tables: allow extra hyphens after `|-` in tables.

I didn't see this documented anywhere, but it seems to be allowed (and common). See #2649. This addresses some of the cases there, but not all.

commit598ffa3a945603c4875d76df3236960ab2181733 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 21 Feb 2017, 17:30 (10 years ago) parent7af3d90
1 file changed+1−1
src/Text/Pandoc/Readers/MediaWiki.hs+1−1
src/Text/Pandoc/Readers/MediaWiki.hs+1−1
@@ -264,7 +264,7 @@ tableEnd = try $ guardColumnOne *> skipSpaces *> sym "|}"
264264
265265rowsep :: PandocMonad m => MWParser m ()
266266rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <*
267− optional parseAttr <* blanklines
267+ many (char '-') <* optional parseAttr <* blanklines
268268
269269cellsep :: PandocMonad m => MWParser m ()
270270cellsep = try $