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