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.
This commit is contained in:
John MacFarlane 2017-02-21 17:30:13 +01:00
parent 7af3d90ae1
commit 598ffa3a94

View file

@ -264,7 +264,7 @@ tableEnd = try $ guardColumnOne *> skipSpaces *> sym "|}"
rowsep :: PandocMonad m => MWParser m ()
rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <*
optional parseAttr <* blanklines
many (char '-') <* optional parseAttr <* blanklines
cellsep :: PandocMonad m => MWParser m ()
cellsep = try $