git.iko.soy/typeable/pandoc
on 229b310 help sign in
typeable/pandoc/tests/rst-reader.native
170 lines 10.0 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
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
80 [ [ Plain [Str "First"] ]
81 , [ Plain [Str "Second"] ]
82 , [ Plain [Str "Third"] ] ]
83, Para [Str "and",Str ":"]
84, OrderedList
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
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
95 [ [ Para [Str "One"] ]
96 , [ Para [Str "Two"] ]
97 , [ Para [Str "Three"] ] ]
98, Para [Str "Multiple",Space,Str "paragraphs",Str ":"]
99, OrderedList
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
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 1 [Str "HTML",Space,Str "Blocks"]
121, Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line",Str ":"]
122, RawHtml "<div>foo</div>\n"
123, Para [Str "Now,",Space,Str "nested",Str ":"]
124, RawHtml "<div>\n <div>\n <div>\n foo\n </div>\n </div>\n</div>\n"
125, Header 1 [Str "LaTeX",Space,Str "Block"]
126, Para [TeX "\\begin{tabular}{|l|l|}\\hline\nAnimal & Number \\\\ \\hline\nDog & 2 \\\\\nCat & 1 \\\\ \\hline\n\\end{tabular}\n"]
127, Header 1 [Str "Inline",Space,Str "Markup"]
128, Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "This",Space,Str "is",Space,Strong [Str "strong"],Str "."]
129, 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 "."]
130, Header 1 [Str "Special",Space,Str "Characters"]
131, Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode",Str ":"]
132, BulletList
133 [ [ Plain [Str "I",Space,Str "hat",Str ":",Space,Str "\206"] ]
134 , [ Plain [Str "o",Space,Str "umlaut",Str ":",Space,Str "\246"] ]
135 , [ Plain [Str "section",Str ":",Space,Str "\167"] ]
136 , [ Plain [Str "set",Space,Str "membership",Str ":",Space,Str "\8712"] ]
137 , [ Plain [Str "copyright",Str ":",Space,Str "\169"] ] ]
138, Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
139, Para [Str "This",Space,Str "&",Space,Str "that."]
140, Para [Str "4",Space,Str "<",Space,Str "5."]
141, Para [Str "6",Space,Str ">",Space,Str "5."]
142, Para [Str "Backslash",Str ":",Space,Str "\\"]
143, Para [Str "Backtick",Str ":",Space,Str "`"]
144, Para [Str "Asterisk",Str ":",Space,Str "*"]
145, Para [Str "Underscore",Str ":",Space,Str "_"]
146, Para [Str "Left",Space,Str "brace",Str ":",Space,Str "{"]
147, Para [Str "Right",Space,Str "brace",Str ":",Space,Str "}"]
148, Para [Str "Left",Space,Str "bracket",Str ":",Space,Str "["]
149, Para [Str "Right",Space,Str "bracket",Str ":",Space,Str "]"]
150, Para [Str "Left",Space,Str "paren",Str ":",Space,Str "("]
151, Para [Str "Right",Space,Str "paren",Str ":",Space,Str ")"]
152, Para [Str "Greater",Str "-",Str "than",Str ":",Space,Str ">"]
153, Para [Str "Hash",Str ":",Space,Str "#"]
154, Para [Str "Period",Str ":",Space,Str "."]
155, Para [Str "Bang",Str ":",Space,Str "!"]
156, Para [Str "Plus",Str ":",Space,Str "+"]
157, Para [Str "Minus",Str ":",Space,Str "-"]
158, Header 1 [Str "Links"]
159, Para [Str "Explicit",Str ":",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
160, 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/","")]
161, 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."]
162, 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 "."]
163, 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 "."]
164, 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 "."]
165, Para [Str "But",Space,Str "not",Space,Str "here",Str ":"]
166, CodeBlock "http://example.com/"
167, Header 1 [Str "Images"]
168, 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 ":"]
169, Plain [Image [Str "image"] ("lalune.jpg","")]
170, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."] ]