git.iko.soy/typeable/pandoc
on 08fbfa3 help sign in
typeable/pandoc/tests/rst-reader.native
211 lines 12 kB history raw
1Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str "Subtitle"] ["John MacFarlane","Anonymous"] "July 17, 2006")
2[ BlockQuote
3 [ Para [Strong [Str "Revision"],Str ":",Space,Str "3"] ]
5, Header 1 [Str "Level",Space,Str "one",Space,Str "header"]
6, Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "set",Space,Str "of",Space,Str "tests",Space,Str "for",Space,Str "pandoc.",Space,Str "Most",Space,Str "of",Space,Str "them",Space,Str "are",Space,Str "adapted",Space,Str "from",Space,Str "John",Space,Str "Gruber's",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
7, Header 2 [Str "Level",Space,Str "two",Space,Str "header"]
8, Header 3 [Str "Level",Space,Str "three"]
9, Header 4 [Str "Level",Space,Str "four",Space,Str "with",Space,Emph [Str "emphasis"]]
10, Header 5 [Str "Level",Space,Str "five"]
11, Header 1 [Str "Paragraphs"]
12, Para [Str "Here's",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
13, Para [Str "In",Space,Str "Markdown",Space,Str "1.0.0",Space,Str "and",Space,Str "earlier.",Space,Str "Version",Space,Str "8.",Space,Str "This",Space,Str "line",Space,Str "turns",Space,Str "into",Space,Str "a",Space,Str "list",Space,Str "item.",Space,Str "Because",Space,Str "a",Space,Str "hard",Str "-",Str "wrapped",Space,Str "line",Space,Str "in",Space,Str "the",Space,Str "middle",Space,Str "of",Space,Str "a",Space,Str "paragraph",Space,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
14, Para [Str "Here's",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
15, Para [Str "Horizontal",Space,Str "rule",Str ":"]
16, HorizontalRule
17, Para [Str "Another",Str ":"]
18, HorizontalRule
19, Header 1 [Str "Block",Space,Str "Quotes"]
20, Para [Str "Here's",Space,Str "a",Space,Str "block",Space,Str "quote",Str ":"]
21, BlockQuote
22 [ Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It",Space,Str "is",Space,Str "pretty",Space,Str "short."] ]
24, Para [Str "Here's",Space,Str "another,",Space,Str "differently",Space,Str "indented",Str ":"]
25, BlockQuote
26 [ Para [Str "This",Space,Str "is",Space,Str "a",Space,Str "block",Space,Str "quote.",Space,Str "It's",Space,Str "indented",Space,Str "with",Space,Str "a",Space,Str "tab."]
27 , Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote",Str ":"]
28 , CodeBlock "sub status {\n print \"working\";\n}"
29 , Para [Str "List",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote",Str ":"]
30 , OrderedList (1,Decimal,Period)
31 [ [ Plain [Str "item",Space,Str "one"] ]
32 , [ Plain [Str "item",Space,Str "two"] ] ]
33 , Para [Str "Nested",Space,Str "block",Space,Str "quotes",Str ":"]
34 , BlockQuote
35 [ Para [Str "nested"]
36 , BlockQuote
37 [ Para [Str "nested"] ]
38 ] ]
39, Header 1 [Str "Code",Space,Str "Blocks"]
40, Para [Str "Code",Str ":"]
41, CodeBlock "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}"
42, CodeBlock "this code block is indented by one tab"
43, Para [Str "And",Str ":"]
44, CodeBlock " this block is indented by two tabs\n\n These should not be escaped: \\$ \\\\ \\> \\[ \\{"
45, Header 1 [Str "Lists"]
46, Header 2 [Str "Unordered"]
47, Para [Str "Asterisks",Space,Str "tight",Str ":"]
48, BulletList
49 [ [ Plain [Str "asterisk",Space,Str "1"] ]
50 , [ Plain [Str "asterisk",Space,Str "2"] ]
51 , [ Plain [Str "asterisk",Space,Str "3"] ] ]
52, Para [Str "Asterisks",Space,Str "loose",Str ":"]
53, BulletList
54 [ [ Para [Str "asterisk",Space,Str "1"] ]
55 , [ Para [Str "asterisk",Space,Str "2"] ]
56 , [ Para [Str "asterisk",Space,Str "3"] ] ]
57, Para [Str "Pluses",Space,Str "tight",Str ":"]
58, BulletList
59 [ [ Plain [Str "Plus",Space,Str "1"] ]
60 , [ Plain [Str "Plus",Space,Str "2"] ]
61 , [ Plain [Str "Plus",Space,Str "3"] ] ]
62, Para [Str "Pluses",Space,Str "loose",Str ":"]
63, BulletList
64 [ [ Para [Str "Plus",Space,Str "1"] ]
65 , [ Para [Str "Plus",Space,Str "2"] ]
66 , [ Para [Str "Plus",Space,Str "3"] ] ]
67, Para [Str "Minuses",Space,Str "tight",Str ":"]
68, BulletList
69 [ [ Plain [Str "Minus",Space,Str "1"] ]
70 , [ Plain [Str "Minus",Space,Str "2"] ]
71 , [ Plain [Str "Minus",Space,Str "3"] ] ]
72, Para [Str "Minuses",Space,Str "loose",Str ":"]
73, BulletList
74 [ [ Para [Str "Minus",Space,Str "1"] ]
75 , [ Para [Str "Minus",Space,Str "2"] ]
76 , [ Para [Str "Minus",Space,Str "3"] ] ]
77, Header 2 [Str "Ordered"]
78, Para [Str "Tight",Str ":"]
79, OrderedList (1,Decimal,Period)
80 [ [ Plain [Str "First"] ]
81 , [ Plain [Str "Second"] ]
82 , [ Plain [Str "Third"] ] ]
83, Para [Str "and",Str ":"]
84, OrderedList (1,Decimal,Period)
85 [ [ Plain [Str "One"] ]
86 , [ Plain [Str "Two"] ]
87 , [ Plain [Str "Three"] ] ]
88, Para [Str "Loose",Space,Str "using",Space,Str "tabs",Str ":"]
89, OrderedList (1,Decimal,Period)
90 [ [ Para [Str "First"] ]
91 , [ Para [Str "Second"] ]
92 , [ Para [Str "Third"] ] ]
93, Para [Str "and",Space,Str "using",Space,Str "spaces",Str ":"]
94, OrderedList (1,Decimal,Period)
95 [ [ Para [Str "One"] ]
96 , [ Para [Str "Two"] ]
97 , [ Para [Str "Three"] ] ]
98, Para [Str "Multiple",Space,Str "paragraphs",Str ":"]
99, OrderedList (1,Decimal,Period)
100 [ [ Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
101 , Para [Str "Item",Space,Str "1.",Space,Str "graf",Space,Str "two.",Space,Str "The",Space,Str "quick",Space,Str "brown",Space,Str "fox",Space,Str "jumped",Space,Str "over",Space,Str "the",Space,Str "lazy",Space,Str "dog's",Space,Str "back."] ], [ Para [Str "Item",Space,Str "2."] ]
102 , [ Para [Str "Item",Space,Str "3."] ] ]
103, Para [Str "Nested",Str ":"]
104, BulletList
105 [ [ Para [Str "Tab"]
106 , BulletList
107 [ [ Para [Str "Tab"]
108 , BulletList
109 [ [ Plain [Str "Tab"] ]
110 ] ] ] ] ]
111, Para [Str "Here's",Space,Str "another",Str ":"]
112, OrderedList (1,Decimal,Period)
113 [ [ Para [Str "First"] ]
114 , [ Para [Str "Second",Str ":"]
115 , BlockQuote
116 [ BulletList
117 [ [ Plain [Str "Fee"] ]
118 , [ Plain [Str "Fie"] ]
119 , [ Plain [Str "Foe"] ] ] ] ], [ Para [Str "Third"] ] ]
120, Header 2 [Str "Fancy",Space,Str "list",Space,Str "markers"]
121, OrderedList (2,Decimal,TwoParens)
122 [ [ Plain [Str "begins",Space,Str "with",Space,Str "2"] ]
123 , [ Para [Str "and",Space,Str "now",Space,Str "3"]
124 , Para [Str "with",Space,Str "a",Space,Str "continuation"]
125 , OrderedList (4,LowerRoman,Period)
126 [ [ Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"] ]
127 , [ Para [Str "more",Space,Str "items"]
128 , OrderedList (1,UpperAlpha,TwoParens)
129 [ [ Plain [Str "a",Space,Str "subsublist"] ]
130 , [ Plain [Str "a",Space,Str "subsublist"] ] ] ] ] ] ]
131, Para [Str "Nesting",Str ":"]
132, OrderedList (1,UpperAlpha,Period)
133 [ [ Para [Str "Upper",Space,Str "Alpha"]
134 , OrderedList (1,UpperRoman,Period)
135 [ [ Para [Str "Upper",Space,Str "Roman."]
136 , OrderedList (6,Decimal,TwoParens)
137 [ [ Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
138 , OrderedList (3,LowerAlpha,OneParen)
139 [ [ Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"] ]
140 ] ] ] ] ] ] ]
141, Para [Str "Autonumbering",Str ":"]
142, OrderedList (1,DefaultStyle,DefaultDelim)
143 [ [ Plain [Str "Autonumber."] ]
144 , [ Para [Str "More."]
145 , OrderedList (1,DefaultStyle,DefaultDelim)
146 [ [ Plain [Str "Nested."] ]
147 ] ] ]
148, Header 2 [Str "Definition"]
149, DefinitionList
150 [ ([Str "term",Space,Str "1"],
151 [ Para [Str "Definition",Space,Str "1."] ]
152 ),
153 ([Str "term",Space,Str "2"],
154 [ Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "1."]
155 , Para [Str "Definition",Space,Str "2,",Space,Str "paragraph",Space,Str "2."] ] ),
156 ([Str "term",Space,Str "with",Space,Emph [Str "emphasis"]],
157 [ Para [Str "Definition",Space,Str "3."] ]
158 ) ]
159, Header 1 [Str "HTML",Space,Str "Blocks"]
160, Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line",Str ":"]
161, RawHtml "<div>foo</div>\n"
162, Para [Str "Now,",Space,Str "nested",Str ":"]
163, RawHtml "<div>\n <div>\n <div>\n foo\n </div>\n </div>\n</div>\n"
164, Header 1 [Str "LaTeX",Space,Str "Block"]
165, Para [TeX "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}\n"]
166, Header 1 [Str "Inline",Space,Str "Markup"]
167, Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str "."]
168, Para [Str "This",Space,Str "is",Space,Str "code",Str ":",Space,Code ">",Str ",",Space,Code "$",Str ",",Space,Code "\\",Str ",",Space,Code "\\$",Str ",",Space,Code "<html>",Str "."]
169, Para [Str "This",Space,Str "is",Subscript [Str "subscripted"],Space,Str "and",Space,Str "this",Space,Str "is",Space,Superscript [Str "superscripted"],Str "."]
170, Header 1 [Str "Special",Space,Str "Characters"]
171, Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode",Str ":"]
172, BulletList
173 [ [ Plain [Str "I",Space,Str "hat",Str ":",Space,Str "\206"] ]
174 , [ Plain [Str "o",Space,Str "umlaut",Str ":",Space,Str "\246"] ]
175 , [ Plain [Str "section",Str ":",Space,Str "\167"] ]
176 , [ Plain [Str "set",Space,Str "membership",Str ":",Space,Str "\8712"] ]
177 , [ Plain [Str "copyright",Str ":",Space,Str "\169"] ] ]
178, Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
179, Para [Str "This",Space,Str "&",Space,Str "that."]
180, Para [Str "4",Space,Str "<",Space,Str "5."]
181, Para [Str "6",Space,Str ">",Space,Str "5."]
182, Para [Str "Backslash",Str ":",Space,Str "\\"]
183, Para [Str "Backtick",Str ":",Space,Str "`"]
184, Para [Str "Asterisk",Str ":",Space,Str "*"]
185, Para [Str "Underscore",Str ":",Space,Str "_"]
186, Para [Str "Left",Space,Str "brace",Str ":",Space,Str "{"]
187, Para [Str "Right",Space,Str "brace",Str ":",Space,Str "}"]
188, Para [Str "Left",Space,Str "bracket",Str ":",Space,Str "["]
189, Para [Str "Right",Space,Str "bracket",Str ":",Space,Str "]"]
190, Para [Str "Left",Space,Str "paren",Str ":",Space,Str "("]
191, Para [Str "Right",Space,Str "paren",Str ":",Space,Str ")"]
192, Para [Str "Greater",Str "-",Str "than",Str ":",Space,Str ">"]
193, Para [Str "Hash",Str ":",Space,Str "#"]
194, Para [Str "Period",Str ":",Space,Str "."]
195, Para [Str "Bang",Str ":",Space,Str "!"]
196, Para [Str "Plus",Str ":",Space,Str "+"]
197, Para [Str "Minus",Str ":",Space,Str "-"]
198, Header 1 [Str "Links"]
199, Para [Str "Explicit",Str ":",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
200, Para [Str "Two",Space,Str "anonymous",Space,Str "links",Str ":",Space,Link [Str "the",Space,Str "first"] ("/url1/",""),Space,Str "and",Space,Link [Str "the",Space,Str "second"] ("/url2/","")]
201, Para [Str "Reference",Space,Str "links",Str ":",Space,Link [Str "link1"] ("/url1/",""),Space,Str "and",Space,Link [Str "link2"] ("/url2/",""),Space,Str "and",Space,Link [Str "link1"] ("/url1/",""),Space,Str "again."]
202, Para [Str "Here's",Space,Str "a",Space,Link [Str "link",Space,Str "with",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "the",Space,Str "URL"] ("http://example.com/?foo=1&bar=2",""),Str "."]
203, Para [Str "Here's",Space,Str "a",Space,Str "link",Space,Str "with",Space,Str "an",Space,Str "amersand",Space,Str "in",Space,Str "the",Space,Str "link",Space,Str "text",Str ":",Space,Link [Str "AT&T"] ("/url/",""),Str "."]
204, Para [Str "Autolinks",Str ":",Space,Link [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2",""),Space,Str "and",Space,Link [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net",""),Str "."]
205, Para [Str "But",Space,Str "not",Space,Str "here",Str ":"]
206, CodeBlock "http://example.com/"
207, Header 1 [Str "Images"]
208, Para [Str "From",Space,Str "\"Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune\"",Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902)",Str ":"]
209, Plain [Image [Str "image"] ("lalune.jpg","")]
210, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."] ]