mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
MediaWiki reader: handle multiple attributes in table row (#5471)
This commit is contained in:
committed by
John MacFarlane
parent
73efef589a
commit
cfb3726216
@@ -253,7 +253,7 @@ tableEnd = try $ guardColumnOne *> skipSpaces *> sym "|}"
|
||||
|
||||
rowsep :: PandocMonad m => MWParser m ()
|
||||
rowsep = try $ guardColumnOne *> skipSpaces *> sym "|-" <*
|
||||
many (char '-') <* optional parseAttr <* blanklines
|
||||
many (char '-') <* optional parseAttrs <* blanklines
|
||||
|
||||
cellsep :: PandocMonad m => MWParser m ()
|
||||
cellsep = try $ do
|
||||
@@ -277,7 +277,7 @@ tableCaption = try $ do
|
||||
guardColumnOne
|
||||
skipSpaces
|
||||
sym "|+"
|
||||
optional (try $ parseAttr *> skipSpaces *> char '|' *> blanklines)
|
||||
optional (try $ parseAttrs *> skipSpaces *> char '|' *> blanklines)
|
||||
(trimInlines . mconcat) <$>
|
||||
many (notFollowedBy (cellsep <|> rowsep) *> inline)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user