summaryrefslogtreecommitdiff
path: root/tests/textile-reader.native
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-04-05 21:02:12 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-04-05 21:02:12 -0700
commit24f438aa5f230464d510fae034c94644c0e181ca (patch)
tree7f6c465fc833ce6ce1910838c104c9d8fc8ee4e2 /tests/textile-reader.native
parent060a76a38e1f3586bc92787bb2c25c2dc04e380e (diff)
Textile reader: Better support for attributes.
Instead of being ignored, attributes are now parsed and included in Span inlines. The output will be a bit different from stock textile: e.g. for `*(foo)hi*`, we'll get `<em><span class="foo">hi</span></em>` instead of `<em class="foo">hi</em>`. But at least the data is not lost.
Diffstat (limited to 'tests/textile-reader.native')
-rw-r--r--tests/textile-reader.native2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native
index 88fc0bb47..a17bd8de1 100644
--- a/tests/textile-reader.native
+++ b/tests/textile-reader.native
@@ -124,7 +124,7 @@ Pandoc (Meta {unMeta = fromList []})
,Para [Str "Textile",Space,Str "inline",Space,Str "image",Space,Str "syntax,",Space,Str "like",LineBreak,Str "here",Space,Image [Str "this is the alt text"] ("this_is_an_image.png","this is the alt text"),LineBreak,Str "and",Space,Str "here",Space,Image [Str ""] ("this_is_an_image.png",""),Str "."]
,Header 1 ("attributes",[],[]) [Str "Attributes"]
,Header 2 ("ident",["bar","foo"],[("style","color:red"),("lang","en")]) [Str "HTML",Space,Str "and",Space,Str "CSS",Space,Str "attributes",Space,Str "are",Space,Str "parsed",Space,Str "in",Space,Str "headers."]
-,Para [Str "as",Space,Str "well",Space,Str "as",Space,Strong [Str "inline",Space,Str "attributes"],Space,Str "of",Space,Str "all",Space,Str "kind"]
+,Para [Str "as",Space,Str "well",Space,Str "as",Space,Strong [Span ("",["foo"],[]) [Str "inline",Space,Str "attributes"]],Space,Str "of",Space,Span ("",[],[("style","color:red")]) [Str "all",Space,Str "kind"]]
,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]
[]