MediaWiki reader: Handle table rows containing just an HTML comment.
Closes #1230.
This commit is contained in:
parent
f48b564ac7
commit
ca40acea5b
1 changed files with 2 additions and 1 deletions
|
@ -227,6 +227,7 @@ table = do
|
|||
let widths' = map (\w -> if w == 0 then defaultwidth else w) widths
|
||||
let cellspecs = zip (map fst cellspecs') widths'
|
||||
rows' <- many $ try $ rowsep *> (map snd <$> tableRow)
|
||||
optional blanklines
|
||||
tableEnd
|
||||
let cols = length hdr
|
||||
let (headers,rows) = if hasheader
|
||||
|
@ -275,7 +276,7 @@ tableCaption = try $ do
|
|||
(trimInlines . mconcat) <$> many (notFollowedBy (cellsep <|> rowsep) *> inline)
|
||||
|
||||
tableRow :: MWParser [((Alignment, Double), Blocks)]
|
||||
tableRow = try $ many tableCell
|
||||
tableRow = try $ skipMany htmlComment *> many tableCell
|
||||
|
||||
tableCell :: MWParser ((Alignment, Double), Blocks)
|
||||
tableCell = try $ do
|
||||
|
|
Loading…
Add table
Reference in a new issue