git.iko.soy/typeable/pandoc
on master help sign in
MediaWiki reader: Added test case for templates in list item.
commit64b0378f5d0e88203c7a6a6c2ee7217296d5b6aa authorJohn MacFarlane <jgm@berkeley.edu> dateSat 15 Sep 2012, 16:29 (14 years ago) parent2bc32bc
2 files changed+5−2
tests/mediawiki-reader.native+1−1 tests/mediawiki-reader.wiki+4−1
tests/mediawiki-reader.native+1−1
@@ -140,7 +140,7 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []})
140140 ,[Plain [Str "this",Space,Str "looks",Space,Str "like",Space,Str "a",Space,Str "continuation"]]
141141 ,[Plain [Str "and",Space,Str "is",Space,Str "often",Space,Str "used"]]
142142 ,[Plain [Str "instead",LineBreak,Str "of",Space,Str "<br/>"]]])]]
143− ,[Plain [Str "five"]
143+ ,[Plain [RawInline "mediawiki" "{{{template\n|author=John\n|title=My Book\n}}}"]
144144 ,OrderedList (1,DefaultStyle,DefaultDelim)
145145 [[Plain [Str "five",Space,Str "sub",Space,Str "1"]
146146 ,OrderedList (1,DefaultStyle,DefaultDelim)
tests/mediawiki-reader.wiki+4−1
@@ -214,7 +214,10 @@ ends the list.
214214#: this looks like a continuation
215215#: and is often used
216216#: instead<br/>of <nowiki><br/></nowiki>
217−# five
217+# {{{template
218+|author=John
219+|title=My Book
220+}}}
218221## five sub 1
219222### five sub 1 sub 1
220223## five sub 2