diff options
-rw-r--r-- | src/Text/Pandoc/Readers/MediaWiki.hs | 2 | ||||
-rw-r--r-- | tests/mediawiki-reader.native | 4 | ||||
-rw-r--r-- | tests/mediawiki-reader.wiki | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/MediaWiki.hs b/src/Text/Pandoc/Readers/MediaWiki.hs index ed3a8fb12..cb9eee47d 100644 --- a/src/Text/Pandoc/Readers/MediaWiki.hs +++ b/src/Text/Pandoc/Readers/MediaWiki.hs @@ -222,7 +222,7 @@ tableStart :: MWParser () tableStart = try $ guardColumnOne *> sym "{|" tableEnd :: MWParser () -tableEnd = try $ guardColumnOne *> sym "|}" <* blanklines +tableEnd = try $ guardColumnOne *> sym "|}" rowsep :: MWParser () rowsep = try $ guardColumnOne *> sym "|-" <* blanklines diff --git a/tests/mediawiki-reader.native b/tests/mediawiki-reader.native index a3dc2a08c..2527c7851 100644 --- a/tests/mediawiki-reader.native +++ b/tests/mediawiki-reader.native @@ -237,5 +237,9 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) ,[Para [Str "ice",Space,Str "cream"]]]]]] ,[[Para [Str "Butter"]] ,[Para [Str "Ice",Space,Str "cream"]]]] +,Table [] [AlignDefault] [0.0] + [[]] + [[[Para [Str "Orange"]]]] +,Para [Str "Paragraph",Space,Str "after",Space,Str "the",Space,Str "table."] ,Header 2 ("",[],[]) [Str "notes"] ,Para [Str "My",Space,Str "note!",Note [Plain [Str "This."]]]] diff --git a/tests/mediawiki-reader.wiki b/tests/mediawiki-reader.wiki index cc0ac7918..e373c332e 100644 --- a/tests/mediawiki-reader.wiki +++ b/tests/mediawiki-reader.wiki @@ -362,6 +362,9 @@ and cheese |Ice cream |} +{| +|Orange +|}Paragraph after the table. == notes == |