aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Rivier <paul.r.ml@gmail.com>2010-11-07 19:58:45 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-03 23:10:51 -0800
commitfa0866886be778b0157340ea0563b6744424cfa6 (patch)
tree0e88451a42a50bd5781d60f8257cbc29739f9277 /tests
parente6dde36622bc1f4adbd34934213cbcfb091376a2 (diff)
downloadpandoc-fa0866886be778b0157340ea0563b6744424cfa6.tar.gz
textile reader now ignores html/css attributes
Diffstat (limited to 'tests')
-rw-r--r--tests/textile-reader.native15
-rw-r--r--tests/textile-reader.textile12
2 files changed, 26 insertions, 1 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native
index 3daf704d2..2b91ab7ac 100644
--- a/tests/textile-reader.native
+++ b/tests/textile-reader.native
@@ -100,4 +100,17 @@ Pandoc (Meta {docTitle = [Str ""], docAuthors = [[Str ""]], docDate = [Str ""]})
, [ Plain [Str "45"] ]
, [ Plain [Str "f"] ] ] ]
, Header 1 [Str "Images"]
-, Para [Str "Textile",Space,Str "inline",Space,Str "image",Space,Str "syntax,",Space,Str "like",Space,Str "here",Space,Image [Str "this is the alt text"] ("this_is_an_image.png","this is the alt text"),Space,Str "and",Space,Str "here",Space,Image [Str ""] ("this_is_an_image.png",""),Str "."] ]
+, Para [Str "Textile",Space,Str "inline",Space,Str "image",Space,Str "syntax,",Space,Str "like",Space,Str "here",Space,Image [Str "this is the alt text"] ("this_is_an_image.png","this is the alt text"),Space,Str "and",Space,Str "here",Space,Image [Str ""] ("this_is_an_image.png",""),Str "."]
+, Header 1 [Str "Attributes"]
+, Header 2 [Str "HTML",Space,Str "and",Space,Str "CSS",Space,Str "attributes",Space,Str "are",Space,Str "ignored"]
+, Para [Str "as",Space,Str "well",Space,Str "as",Space,Strong [Str "inline",Space,Str "attributes"]]
+, Para [Str "and",Space,Str "paragraph",Space,Str "attributes,",Space,Str "and",Space,Str "table",Space,Str "attributes."]
+, Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
+ [
+ ] [
+ [ [ Plain [Str "name"] ]
+ , [ Plain [Str "age"] ]
+ , [ Plain [Str "sex"] ] ],
+ [ [ Plain [Str "joan"] ]
+ , [ Plain [Str "24"] ]
+ , [ Plain [Str "f"] ] ] ] ]
diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile
index efb052305..3999649da 100644
--- a/tests/textile-reader.textile
+++ b/tests/textile-reader.textile
@@ -149,3 +149,15 @@ h1. Images
Textile inline image syntax, like
here !this_is_an_image.png(this is the alt text)!
and here !this_is_an_image.png!.
+
+h1. Attributes
+
+h2{color:red}. HTML and CSS attributes are ignored
+
+as well as *(foo)inline attributes*
+
+p{color:green}. and paragraph attributes, and table attributes.
+
+table{foo:bar}.
+| name | age | sex |
+| joan | 24 | f |