mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 15:38:09 +08:00
Mediawiki reader: Don't require blanklines after tables.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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."]]]]
|
||||
|
||||
@@ -362,6 +362,9 @@ and cheese
|
||||
|Ice cream
|
||||
|}
|
||||
|
||||
{|
|
||||
|Orange
|
||||
|}Paragraph after the table.
|
||||
|
||||
== notes ==
|
||||
|
||||
|
||||
Reference in New Issue
Block a user