From d724c6b5681b2f5815b7d915d5e39a7d3979e7f8 Mon Sep 17 00:00:00 2001 From: Paul Rivier Date: Tue, 23 Nov 2010 12:09:04 +0100 Subject: html inlines and html blocks handling in textile reader --- tests/textile-reader.native | 16 +++++++++++++++- tests/textile-reader.textile | 15 +++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) (limited to 'tests') 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 "",Space,Str "raw",Space,Str "HTML",Space,Str "inlines",Space,HtmlInline "",Space,Str "are",Space,Str "accepted,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str ":"] +, RawHtml "
" +, Para [Str "any",Space,Strong [Str "Raw",Space,Str "HTML",Space,Str "Block"],Space,Str "with",Space,Str "bold"] +, RawHtml "
" +, Para [Str "Html",Space,Str "blocks",Space,Str "can",Space,Str "be"] +, RawHtml "
" +, Para [Str "inlined"] +, RawHtml "
" +, 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 "",Space,Str "will",Space,Str "produce",Space,Str "inline",Space,Str "html",Space,HtmlInline ""] ] ] +, 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, raw HTML inlines are accepted, as well as : + +
+ any *Raw HTML Block* with bold +
+ +Html blocks can be
inlined
as well. + +* this
won't produce raw html blocks
+* but this will produce inline html + +Can you prove that 2 < 3 ? -- cgit v1.2.3