MediaWiki: skip optional {{table}} template.
See https://en.wikipedia.org/wiki/Template:Table
Closes #5757.
commitfb93954a269c5c0bb5f07468f3ff6065f147d611
authorJohn MacFarlane <jgm@berkeley.edu>
dateThu 19 Sep 2019, 23:38 (7 years ago)
parent3b457da
src/Text/Pandoc/Readers/MediaWiki.hs+1
@@ -208,6 +208,7 @@ table = do
208208 styles <- option [] $
209209 parseAttrs <* skipMany spaceChar <* optional (char '|')
210210 skipMany spaceChar
211+ optional $ template >> skipMany spaceChar
211212 optional blanklines
212213 let tableWidth = case lookup "width" styles of
213214 Just w -> fromMaybe 1.0 $ parseWidth w