aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-09-15 16:29:52 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2012-09-15 16:29:52 -0400
commit64b0378f5d0e88203c7a6a6c2ee7217296d5b6aa (patch)
tree8484caa04b009fe3d776c58eaa296a8f5718b2fe
parent2bc32bcb0415016c77b8f209837617b8afa27710 (diff)
downloadpandoc-64b0378f5d0e88203c7a6a6c2ee7217296d5b6aa.tar.gz
MediaWiki reader: Added test case for templates in list item.
-rw-r--r--tests/mediawiki-reader.native2
-rw-r--r--tests/mediawiki-reader.wiki5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/mediawiki-reader.native b/tests/mediawiki-reader.native
index 1eda338a3..f556c698f 100644
--- a/tests/mediawiki-reader.native
+++ b/tests/mediawiki-reader.native
@@ -140,7 +140,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
,[Plain [Str "this",Space,Str "looks",Space,Str "like",Space,Str "a",Space,Str "continuation"]]
,[Plain [Str "and",Space,Str "is",Space,Str "often",Space,Str "used"]]
,[Plain [Str "instead",LineBreak,Str "of",Space,Str "<br/>"]]])]]
- ,[Plain [Str "five"]
+ ,[Plain [RawInline "mediawiki" "{{{template\n|author=John\n|title=My Book\n}}}"]
,OrderedList (1,DefaultStyle,DefaultDelim)
[[Plain [Str "five",Space,Str "sub",Space,Str "1"]
,OrderedList (1,DefaultStyle,DefaultDelim)
diff --git a/tests/mediawiki-reader.wiki b/tests/mediawiki-reader.wiki
index ef2a078c1..fc3015645 100644
--- a/tests/mediawiki-reader.wiki
+++ b/tests/mediawiki-reader.wiki
@@ -214,7 +214,10 @@ ends the list.
#: this looks like a continuation
#: and is often used
#: instead<br/>of <nowiki><br/></nowiki>
-# five
+# {{{template
+|author=John
+|title=My Book
+}}}
## five sub 1
### five sub 1 sub 1
## five sub 2