Mediawiki reader: Don't require blanklines after tables.

This commit is contained in:
Jeff Runningen 2013-01-27 23:15:46 -05:00
parent 9d549ab683
commit efddb85d46
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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."]]]]

View file

@ -362,6 +362,9 @@ and cheese
|Ice cream
|}
{|
|Orange
|}Paragraph after the table.
== notes ==