diff options
author | Paul Rivier <paul.r.ml@gmail.com> | 2010-11-23 12:09:04 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-03 23:10:51 -0800 |
commit | d724c6b5681b2f5815b7d915d5e39a7d3979e7f8 (patch) | |
tree | da67082fda81cbee917ebbe990abf7daddb8cc24 /tests | |
parent | fa0866886be778b0157340ea0563b6744424cfa6 (diff) | |
download | pandoc-d724c6b5681b2f5815b7d915d5e39a7d3979e7f8.tar.gz |
html inlines and html blocks handling in textile reader
Diffstat (limited to 'tests')
-rw-r--r-- | tests/textile-reader.native | 16 | ||||
-rw-r--r-- | tests/textile-reader.textile | 15 |
2 files changed, 30 insertions, 1 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native index 2b91ab7ac..738362b09 100644 --- a/tests/textile-reader.native +++ b/tests/textile-reader.native @@ -113,4 +113,18 @@ Pandoc (Meta {docTitle = [Str ""], docAuthors = [[Str ""]], docDate = [Str ""]}) , [ Plain [Str "sex"] ] ], [ [ Plain [Str "joan"] ] , [ Plain [Str "24"] ] - , [ Plain [Str "f"] ] ] ] ] + , [ Plain [Str "f"] ] ] ] +, Header 1 [Str "Raw",Space,Str "HTML"] +, Para [Str "However,",Space,HtmlInline "<strong>",Space,Str "raw",Space,Str "HTML",Space,Str "inlines",Space,HtmlInline "</strong>",Space,Str "are",Space,Str "accepted,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str ":"] +, RawHtml "<div class=\"foobar\">" +, Para [Str "any",Space,Strong [Str "Raw",Space,Str "HTML",Space,Str "Block"],Space,Str "with",Space,Str "bold"] +, RawHtml "</div>" +, Para [Str "Html",Space,Str "blocks",Space,Str "can",Space,Str "be"] +, RawHtml "<div>" +, Para [Str "inlined"] +, RawHtml "</div>" +, Para [Str "as",Space,Str "well."] +, BulletList + [ [ Plain [Str "this",Space,Str "<",Str "div",Str ">",Space,Str "won",Str "'",Str "t",Space,Str "produce",Space,Str "raw",Space,Str "html",Space,Str "blocks",Space,Str "<",Str "/div",Str ">"] ] + , [ Plain [Str "but",Space,Str "this",Space,HtmlInline "<strong>",Space,Str "will",Space,Str "produce",Space,Str "inline",Space,Str "html",Space,HtmlInline "</strong>"] ] ] +, Para [Str "Can",Space,Str "you",Space,Str "prove",Space,Str "that",Space,Str "2",Space,Str "<",Space,Str "3",Space,Str "?"] ] diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile index 3999649da..7384abb64 100644 --- a/tests/textile-reader.textile +++ b/tests/textile-reader.textile @@ -161,3 +161,18 @@ p{color:green}. and paragraph attributes, and table attributes. table{foo:bar}. | name | age | sex | | joan | 24 | f | + +h1. Raw HTML + +However, <strong> raw HTML inlines </strong> are accepted, as well as : + +<div class="foobar"> + any *Raw HTML Block* with bold +</div> + +Html blocks can be <div>inlined</div> as well. + +* this <div> won't produce raw html blocks </div> +* but this <strong> will produce inline html </strong> + +Can you prove that 2 < 3 ? |