diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-12 19:15:34 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-12 19:15:34 -0700 |
commit | b19aee4e1e199309f91059a11154059db9411798 (patch) | |
tree | fb5bd17c94407356a584763a0b9c0b2a2dc76c09 /tests | |
parent | 9353af9133a2400d4e0f368dfadb6d677835e8c9 (diff) | |
download | pandoc-b19aee4e1e199309f91059a11154059db9411798.tar.gz |
Added some tests for mediawiki reader.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mediawiki-reader.native | 24 | ||||
-rw-r--r-- | tests/mediawiki-reader.wiki | 28 |
2 files changed, 51 insertions, 1 deletions
diff --git a/tests/mediawiki-reader.native b/tests/mediawiki-reader.native index 8b3eedf42..e8f33c062 100644 --- a/tests/mediawiki-reader.native +++ b/tests/mediawiki-reader.native @@ -32,4 +32,26 @@ Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) ,Para [Str "between",Space,Str "blocks"] ,Header 2 [Str "linebreaks"] ,Para [Str "hi",LineBreak,Str "there"] -,Para [Str "hi",LineBreak,Str "there"]] +,Para [Str "hi",LineBreak,Str "there"] +,Header 2 [Str ":",Space,Str "indents"] +,Para [Str "hi"] +,DefinitionList + [([], + [[Plain [Str "there"]]])] +,Para [Str "bud"] +,Para [Str "hi"] +,DefinitionList + [([], + [[DefinitionList + [([], + [[Plain [Str "there"]]])]]])] +,Para [Str "bud"] +,Header 2 [Str "p",Space,Str "tags"] +,Para [Str "hi",Space,Str "there"] +,Para [Str "bud"] +,Para [Str "another"] +,Header 2 [Str "raw",Space,Str "html"] +,Para [Str "hi",Space,RawInline "html" "<span style=\"color:red\">",Emph [Str "there"],RawInline "html" "</span>",Str "."] +,RawBlock "html" "<div class=\"special\">" +,Para [Str "hi",Space,Emph [Str "there"]] +,RawBlock "html" "</div>"] diff --git a/tests/mediawiki-reader.wiki b/tests/mediawiki-reader.wiki index 6e51f1544..afee78007 100644 --- a/tests/mediawiki-reader.wiki +++ b/tests/mediawiki-reader.wiki @@ -69,3 +69,31 @@ hi<br/>there hi<br> there +== : indents == + +hi +: there +bud + +hi +:: there +bud + +== p tags == + +hi there +<p> +bud +<p> +another +</p> + +== raw html == + +hi <span style="color:red">''there''</span>. + +<div class="special"> +hi ''there'' +</div> + + |