diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-25 09:34:49 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-25 09:34:49 -0800 |
commit | a1021bdda6a1ca2c91d80b5e562a1fb6206bbbcf (patch) | |
tree | 0a4c9acfb2322177588b84ca350996f6e87c76c4 /tests | |
parent | 11c5831a1ff8f71e2ff850e83f012ea57cc14243 (diff) |
Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
Closes #2674.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/textile-reader.native | 7 | ||||
-rw-r--r-- | tests/textile-reader.textile | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/textile-reader.native b/tests/textile-reader.native index fe2c7be24..79a5f52da 100644 --- a/tests/textile-reader.native +++ b/tests/textile-reader.native @@ -132,8 +132,11 @@ Pandoc (Meta {unMeta = fromList []}) ,Header 1 ("images",[],[]) [Str "Images"] ,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 [Span ("",["foo"],[]) [Str "inline",Space,Str "attributes"]],Space,Str "of",Space,Span ("",[],[("style","color:red")]) [Str "all",Space,Str "kind"]] +,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."] +,Header 2 ("centered",[],[("style","text-align:center;")]) [Str "Centered"] +,Header 2 ("right",[],[("style","text-align:right;")]) [Str "Right"] +,Header 2 ("justified",[],[("lang","en"),("style","color:blue;text-align:justify;")]) [Str "Justified"] +,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] [] diff --git a/tests/textile-reader.textile b/tests/textile-reader.textile index d5d7378b0..a9c80ccbd 100644 --- a/tests/textile-reader.textile +++ b/tests/textile-reader.textile @@ -207,6 +207,12 @@ h1. Attributes h2[en]{color:red}(foo bar #ident). HTML and CSS attributes are parsed in headers. +h2=. Centered + +h2>. Right + +h2<>{color:blue}[en]. Justified + as well as *(foo)inline attributes* of %{color:red} all kind% p{color:green}. and paragraph attributes, and table attributes. |