diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-19 23:38:48 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-19 23:38:48 -0700 |
commit | fb93954a269c5c0bb5f07468f3ff6065f147d611 (patch) | |
tree | 0aa069f87da2513fa29a43c6635e4643a742d297 | |
parent | 3b457da6dca9c68026e2ac43d18f3cf0d66ac587 (diff) | |
download | pandoc-fb93954a269c5c0bb5f07468f3ff6065f147d611.tar.gz |
MediaWiki: skip optional {{table}} template.
See https://en.wikipedia.org/wiki/Template:Table
Closes #5757.
-rw-r--r-- | src/Text/Pandoc/Readers/MediaWiki.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs index 6da3e0777..35bb8e3eb 100644 --- a/src/Text/Pandoc/Readers/MediaWiki.hs +++ b/src/Text/Pandoc/Readers/MediaWiki.hs @@ -208,6 +208,7 @@ table = do styles <- option [] $ parseAttrs <* skipMany spaceChar <* optional (char '|') skipMany spaceChar + optional $ template >> skipMany spaceChar optional blanklines let tableWidth = case lookup "width" styles of Just w -> fromMaybe 1.0 $ parseWidth w |