git.iko.soy/typeable/pandoc
on 1.5.0.1 help sign in
typeable/pandoc/tests/html-reader.native
347 lines 23 kB history raw
1Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docAuthors = [], docDate = []})
2[ 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."]
3, HorizontalRule
4, Header 1 [Str "Headers"]
5, Header 2 [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link [Str "embedded",Space,Str "link"] ("/url","")]
6, Header 3 [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
7, Header 4 [Str "Level",Space,Str "4"]
8, Header 5 [Str "Level",Space,Str "5"]
9, Header 1 [Str "Level",Space,Str "1"]
10, Header 2 [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
11, Header 3 [Str "Level",Space,Str "3"]
12, Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
13, Header 2 [Str "Level",Space,Str "2"]
14, Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
15, HorizontalRule
16, Header 1 [Str "Paragraphs"]
17, Para [Str "Here's",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
18, 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-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."]
19, Para [Str "Here's",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
20, Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Space,Str "here."]
21, HorizontalRule
22, Header 1 [Str "Block",Space,Str "Quotes"]
23, Para [Str "E-mail",Space,Str "style:"]
24, BlockQuote
25 [ 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."] ]
27, BlockQuote
28 [ Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
29 , CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
30 , Para [Str "A",Space,Str "list:"]
31 , OrderedList (1,DefaultStyle,DefaultDelim)
32 [ [ Plain [Str "item",Space,Str "one"] ]
33 , [ Plain [Str "item",Space,Str "two"] ] ]
34 , Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
35 , BlockQuote
36 [ Para [Str "nested"] ]
38 , BlockQuote
39 [ Para [Str "nested"] ]
40 ]
41, Para [Str "This",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "block",Space,Str "quote:",Space,Str "2",Space,Str ">",Space,Str "1."]
42, Para [Str "Box-style:"]
43, BlockQuote
44 [ Para [Str "Example:"]
45 , CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}" ]
46, BlockQuote
47 [ OrderedList (1,DefaultStyle,DefaultDelim)
48 [ [ Plain [Str "do",Space,Str "laundry"] ]
49 , [ Plain [Str "take",Space,Str "out",Space,Str "the",Space,Str "trash"] ] ] ]
50, Para [Str "Here's",Space,Str "a",Space,Str "nested",Space,Str "one:"]
51, BlockQuote
52 [ Para [Str "Joe",Space,Str "said:"]
53 , BlockQuote
54 [ Para [Str "Don't",Space,Str "quote",Space,Str "me."] ]
55 ]
56, Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
57, HorizontalRule
58, Header 1 [Str "Code",Space,Str "Blocks"]
59, Para [Str "Code:"]
60, CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
61, Para [Str "And:"]
62, CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
63, HorizontalRule
64, Header 1 [Str "Lists"]
65, Header 2 [Str "Unordered"]
66, Para [Str "Asterisks",Space,Str "tight:"]
67, BulletList
68 [ [ Plain [Str "asterisk",Space,Str "1"] ]
69 , [ Plain [Str "asterisk",Space,Str "2"] ]
70 , [ Plain [Str "asterisk",Space,Str "3"] ] ]
71, Para [Str "Asterisks",Space,Str "loose:"]
72, BulletList
73 [ [ Para [Str "asterisk",Space,Str "1"] ]
74 , [ Para [Str "asterisk",Space,Str "2"] ]
75 , [ Para [Str "asterisk",Space,Str "3"] ] ]
76, Para [Str "Pluses",Space,Str "tight:"]
77, BulletList
78 [ [ Plain [Str "Plus",Space,Str "1"] ]
79 , [ Plain [Str "Plus",Space,Str "2"] ]
80 , [ Plain [Str "Plus",Space,Str "3"] ] ]
81, Para [Str "Pluses",Space,Str "loose:"]
82, BulletList
83 [ [ Para [Str "Plus",Space,Str "1"] ]
84 , [ Para [Str "Plus",Space,Str "2"] ]
85 , [ Para [Str "Plus",Space,Str "3"] ] ]
86, Para [Str "Minuses",Space,Str "tight:"]
87, BulletList
88 [ [ Plain [Str "Minus",Space,Str "1"] ]
89 , [ Plain [Str "Minus",Space,Str "2"] ]
90 , [ Plain [Str "Minus",Space,Str "3"] ] ]
91, Para [Str "Minuses",Space,Str "loose:"]
92, BulletList
93 [ [ Para [Str "Minus",Space,Str "1"] ]
94 , [ Para [Str "Minus",Space,Str "2"] ]
95 , [ Para [Str "Minus",Space,Str "3"] ] ]
96, Header 2 [Str "Ordered"]
97, Para [Str "Tight:"]
98, OrderedList (1,DefaultStyle,DefaultDelim)
99 [ [ Plain [Str "First"] ]
100 , [ Plain [Str "Second"] ]
101 , [ Plain [Str "Third"] ] ]
102, Para [Str "and:"]
103, OrderedList (1,DefaultStyle,DefaultDelim)
104 [ [ Plain [Str "One"] ]
105 , [ Plain [Str "Two"] ]
106 , [ Plain [Str "Three"] ] ]
107, Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
108, OrderedList (1,DefaultStyle,DefaultDelim)
109 [ [ Para [Str "First"] ]
110 , [ Para [Str "Second"] ]
111 , [ Para [Str "Third"] ] ]
112, Para [Str "and",Space,Str "using",Space,Str "spaces:"]
113, OrderedList (1,DefaultStyle,DefaultDelim)
114 [ [ Para [Str "One"] ]
115 , [ Para [Str "Two"] ]
116 , [ Para [Str "Three"] ] ]
117, Para [Str "Multiple",Space,Str "paragraphs:"]
118, OrderedList (1,DefaultStyle,DefaultDelim)
119 [ [ Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
120 , 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."] ]
121 , [ Para [Str "Item",Space,Str "3."] ] ]
122, Header 2 [Str "Nested"]
123, BulletList
124 [ [ Plain [Str "Tab"]
125 , BulletList
126 [ [ Plain [Str "Tab"]
127 , BulletList
128 [ [ Plain [Str "Tab"] ]
129 ] ] ] ] ]
130, Para [Str "Here's",Space,Str "another:"]
131, OrderedList (1,DefaultStyle,DefaultDelim)
132 [ [ Plain [Str "First"] ]
133 , [ Plain [Str "Second:"]
134 , BulletList
135 [ [ Plain [Str "Fee"] ]
136 , [ Plain [Str "Fie"] ]
137 , [ Plain [Str "Foe"] ] ] ], [ Plain [Str "Third"] ] ]
138, Para [Str "Same",Space,Str "thing",Space,Str "but",Space,Str "with",Space,Str "paragraphs:"]
139, OrderedList (1,DefaultStyle,DefaultDelim)
140 [ [ Para [Str "First"] ]
141 , [ Para [Str "Second:"]
142 , BulletList
143 [ [ Plain [Str "Fee"] ]
144 , [ Plain [Str "Fie"] ]
145 , [ Plain [Str "Foe"] ] ] ], [ Para [Str "Third"] ] ]
146, Header 2 [Str "Tabs",Space,Str "and",Space,Str "spaces"]
147, BulletList
148 [ [ Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"] ]
149 , [ Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]
150 , BulletList
151 [ [ Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"] ]
152 , [ Para [Str "this",Space,Str "is",Space,Str "an",Space,Str "example",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"] ] ] ] ]
153, Header 2 [Str "Fancy",Space,Str "list",Space,Str "markers"]
154, OrderedList (2,Decimal,DefaultDelim)
155 [ [ Plain [Str "begins",Space,Str "with",Space,Str "2"] ]
156 , [ Para [Str "and",Space,Str "now",Space,Str "3"]
157 , Para [Str "with",Space,Str "a",Space,Str "continuation"]
158 , OrderedList (4,LowerRoman,DefaultDelim)
159 [ [ Plain [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"] ]
160 , [ Plain [Str "more",Space,Str "items"]
161 , OrderedList (1,UpperAlpha,DefaultDelim)
162 [ [ Plain [Str "a",Space,Str "subsublist"] ]
163 , [ Plain [Str "a",Space,Str "subsublist"] ] ] ] ] ] ]
164, Para [Str "Nesting:"]
165, OrderedList (1,UpperAlpha,DefaultDelim)
166 [ [ Plain [Str "Upper",Space,Str "Alpha"]
167 , OrderedList (1,UpperRoman,DefaultDelim)
168 [ [ Plain [Str "Upper",Space,Str "Roman."]
169 , OrderedList (6,Decimal,DefaultDelim)
170 [ [ Plain [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
171 , OrderedList (3,LowerAlpha,DefaultDelim)
172 [ [ Plain [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"] ]
173 ] ] ] ] ] ] ]
174, Para [Str "Autonumbering:"]
175, OrderedList (1,DefaultStyle,DefaultDelim)
176 [ [ Plain [Str "Autonumber."] ]
177 , [ Plain [Str "More."]
178 , OrderedList (1,DefaultStyle,DefaultDelim)
179 [ [ Plain [Str "Nested."] ]
180 ] ] ]
181, HorizontalRule
182, Header 2 [Str "Definition"]
183, DefinitionList
184 [ ([Str "Violin"],
185 [ [ Plain [Str "Stringed",Space,Str "musical",Space,Str "instrument."] ]
186 , [ Plain [Str "Torture",Space,Str "device."] ]
187 ])
188 , ([Str "Cello",LineBreak,Str "Violoncello"],
189 [ [ Plain [Str "Low-voiced",Space,Str "stringed",Space,Str "instrument."] ]
190 ]) ]
191, HorizontalRule
192, Header 1 [Str "HTML",Space,Str "Blocks"]
193, Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
194, Plain [Str "foo"]
195, Para [Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
196, Plain [Str "foobar"]
197, Para [Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
198, Plain [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ".",Space,Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"]]
199, Para [Str "Here's",Space,Str "a",Space,Str "simple",Space,Str "block:"]
200, Plain [Str "foo"]
201, Para [Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"]
202, CodeBlock ("",[],[]) "<div>\n foo\n</div>"
203, Para [Str "As",Space,Str "should",Space,Str "this:"]
204, CodeBlock ("",[],[]) "<div>foo</div>"
205, Para [Str "Now,",Space,Str "nested:"]
206, Plain [Str "foo"]
207, Para [Str "This",Space,Str "should",Space,Str "just",Space,Str "be",Space,Str "an",Space,Str "HTML",Space,Str "comment:"]
208, Para [Str "Multiline:"]
209, Para [Str "Code",Space,Str "block:"]
210, CodeBlock ("",[],[]) "<!-- Comment -->"
211, Para [Str "Just",Space,Str "plain",Space,Str "comment,",Space,Str "with",Space,Str "trailing",Space,Str "spaces",Space,Str "on",Space,Str "the",Space,Str "line:"]
212, Para [Str "Code:"]
213, CodeBlock ("",[],[]) "<hr />"
214, Para [Str "Hr's:"]
215, HorizontalRule
216, HorizontalRule
217, HorizontalRule
218, HorizontalRule
219, HorizontalRule
220, HorizontalRule
221, HorizontalRule
222, HorizontalRule
223, HorizontalRule
224, HorizontalRule
225, Header 1 [Str "Inline",Space,Str "Markup"]
226, Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],Str ",",Space,Str "and",Space,Str "so",Space,Emph [Str "is",Space,Str "this"],Str "."]
227, Para [Str "This",Space,Str "is",Space,Strong [Str "strong"],Str ",",Space,Str "and",Space,Str "so",Space,Strong [Str "is",Space,Str "this"],Str "."]
228, Para [Str "An",Space,Emph [Link [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
229, Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
230, Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
231, Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
232, Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
233, Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ">",Str ",",Space,Code "$",Str ",",Space,Code "\\",Str ",",Space,Code "\\$",Str ",",Space,Code "<html>",Str "."]
234, HorizontalRule
235, Header 1 [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
236, Para [Str "\"Hello,\"",Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Str "\"'Shelob'",Space,Str "is",Space,Str "my",Space,Str "name.\""]
237, Para [Str "'A',",Space,Str "'B',",Space,Str "and",Space,Str "'C'",Space,Str "are",Space,Str "letters."]
238, Para [Str "'Oak,'",Space,Str "'elm,'",Space,Str "and",Space,Str "'beech'",Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",Space,Str "So",Space,Str "is",Space,Str "'pine.'"]
239, Para [Str "'He",Space,Str "said,",Space,Str "\"I",Space,Str "want",Space,Str "to",Space,Str "go.\"'",Space,Str "Were",Space,Str "you",Space,Str "alive",Space,Str "in",Space,Str "the",Space,Str "70's?"]
240, Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "quoted",Space,Str "'",Code "code",Str "'",Space,Str "and",Space,Str "a",Space,Str "\"",Link [Str "quoted",Space,Str "link"] ("http://example.com/?foo=1&bar=2",""),Str "\"."]
241, Para [Str "Some",Space,Str "dashes:",Space,Str "one---two",Space,Str "---",Space,Str "three--four",Space,Str "--",Space,Str "five."]
242, Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5-7,",Space,Str "255-66,",Space,Str "1987-1999."]
243, Para [Str "Ellipses...and.",Space,Str ".",Space,Str ".and",Space,Str ".",Space,Str ".",Space,Str ".",Space,Str "."]
244, HorizontalRule
245, Header 1 [Str "LaTeX"]
246, BulletList
247 [ [ Plain [Str "\\cite[22-23]{smith.1899}"] ]
248 , [ Plain [Str "\\doublespacing"] ]
249 , [ Plain [Str "$2+2=4$"] ]
250 , [ Plain [Str "$x",Space,Str "\\in",Space,Str "y$"] ]
251 , [ Plain [Str "$\\alpha",Space,Str "\\wedge",Space,Str "\\omega$"] ]
252 , [ Plain [Str "$223$"] ]
253 , [ Plain [Str "$p$-Tree"] ]
254 , [ Plain [Str "$\\frac{d}{dx}f(x)=\\lim_{h\\to",Space,Str "0}\\frac{f(x+h)-f(x)}{h}$"] ]
255 , [ Plain [Str "Here's",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",Space,Str "$\\alpha",Space,Str "+",Space,Str "\\omega",Space,Str "\\times",Space,Str "x^2$."] ] ]
256, Para [Str "These",Space,Str "shouldn't",Space,Str "be",Space,Str "math:"]
257, BulletList
258 [ [ Plain [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code "$e = mc^2$",Str "."] ]
259 , [ Plain [Str "$22,000",Space,Str "is",Space,Str "a",Space,Emph [Str "lot"],Space,Str "of",Space,Str "money.",Space,Str "So",Space,Str "is",Space,Str "$34,000.",Space,Str "(It",Space,Str "worked",Space,Str "if",Space,Str "\"lot\"",Space,Str "is",Space,Str "emphasized.)"] ]
260 , [ Plain [Str "Escaped",Space,Code "$",Str ":",Space,Str "$73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23$."] ] ]
261, Para [Str "Here's",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
262, Para [Str "\\begin{tabular}{|l|l|}\\hline",Space,Str "Animal",Space,Str "&",Space,Str "Number",Space,Str "\\\\",Space,Str "\\hline",Space,Str "Dog",Space,Str "&",Space,Str "2",Space,Str "\\\\",Space,Str "Cat",Space,Str "&",Space,Str "1",Space,Str "\\\\",Space,Str "\\hline",Space,Str "\\end{tabular}"]
263, HorizontalRule
264, Header 1 [Str "Special",Space,Str "Characters"]
265, Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
266, BulletList
267 [ [ Plain [Str "I",Space,Str "hat:",Space,Str "\206"] ]
268 , [ Plain [Str "o",Space,Str "umlaut:",Space,Str "\246"] ]
269 , [ Plain [Str "section:",Space,Str "\167"] ]
270 , [ Plain [Str "set",Space,Str "membership:",Space,Str "\8712"] ]
271 , [ Plain [Str "copyright:",Space,Str "\169"] ] ]
272, Para [Str "AT",Str "&",Str "T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
273, Para [Str "AT",Str "&",Str "T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it."]
274, Para [Str "This",Space,Str "&",Space,Str "that."]
275, Para [Str "4",Space,Str "<",Space,Str "5."]
276, Para [Str "6",Space,Str ">",Space,Str "5."]
277, Para [Str "Backslash:",Space,Str "\\"]
278, Para [Str "Backtick:",Space,Str "`"]
279, Para [Str "Asterisk:",Space,Str "*"]
280, Para [Str "Underscore:",Space,Str "_"]
281, Para [Str "Left",Space,Str "brace:",Space,Str "{"]
282, Para [Str "Right",Space,Str "brace:",Space,Str "}"]
283, Para [Str "Left",Space,Str "bracket:",Space,Str "["]
284, Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
285, Para [Str "Left",Space,Str "paren:",Space,Str "("]
286, Para [Str "Right",Space,Str "paren:",Space,Str ")"]
287, Para [Str "Greater-than:",Space,Str ">"]
288, Para [Str "Hash:",Space,Str "#"]
289, Para [Str "Period:",Space,Str "."]
290, Para [Str "Bang:",Space,Str "!"]
291, Para [Str "Plus:",Space,Str "+"]
292, Para [Str "Minus:",Space,Str "-"]
293, HorizontalRule
294, Header 1 [Str "Links"]
295, Header 2 [Str "Explicit"]
296, Para [Str "Just",Space,Str "a",Space,Link [Str "URL"] ("/url/",""),Str "."]
297, Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title"),Str "."]
298, Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title preceded by two spaces"),Str "."]
299, Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title preceded by a tab"),Str "."]
300, Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title with \"quotes\" in it")]
301, Para [Link [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","title with single quotes")]
302, Plain [Str "Email",Space,Str "link",Space,Str "(nobody",Space,Str "[at]",Space,Str "nowhere.net)"]
303, Para [Link [Str "Empty"] ("",""),Str "."]
304, Header 2 [Str "Reference"]
305, Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
306, Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
307, Para [Str "Foo",Space,Link [Str "bar"] ("/url/",""),Str "."]
308, Para [Str "With",Space,Link [Str "embedded",Space,Str "[brackets]"] ("/url/",""),Str "."]
309, Para [Link [Str "b"] ("/url/",""),Space,Str "by",Space,Str "itself",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "link."]
310, Para [Str "Indented",Space,Link [Str "once"] ("/url",""),Str "."]
311, Para [Str "Indented",Space,Link [Str "twice"] ("/url",""),Str "."]
312, Para [Str "Indented",Space,Link [Str "thrice"] ("/url",""),Str "."]
313, Para [Str "This",Space,Str "should",Space,Str "[not]",Space,Str "be",Space,Str "a",Space,Str "link."]
314, CodeBlock ("",[],[]) "[not]: /url"
315, Para [Str "Foo",Space,Link [Str "bar"] ("/url/","Title with \"quotes\" inside"),Str "."]
316, Para [Str "Foo",Space,Link [Str "biz"] ("/url/","Title with \"quote\" inside"),Str "."]
317, Header 2 [Str "With",Space,Str "ampersands"]
318, 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 "."]
319, 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:",Space,Link [Str "AT",Str "&",Str "T"] ("http://att.com/","AT&T"),Str "."]
320, Para [Str "Here's",Space,Str "an",Space,Link [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
321, Para [Str "Here's",Space,Str "an",Space,Link [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
322, Header 2 [Str "Autolinks"]
323, Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link [Str "http://example.com/?foo=1",Str "&",Str "bar=2"] ("http://example.com/?foo=1&bar=2","")]
324, BulletList
325 [ [ Plain [Str "In",Space,Str "a",Space,Str "list?"] ]
326 , [ Plain [Link [Str "http://example.com/"] ("http://example.com/","")] ]
327 , [ Plain [Str "It",Space,Str "should."] ] ]
328, Plain [Str "An",Space,Str "e-mail",Space,Str "address:",Space,Str "nobody",Space,Str "[at]",Space,Str "nowhere.net"]
329, BlockQuote
330 [ Para [Str "Blockquoted:",Space,Link [Str "http://example.com/"] ("http://example.com/","")] ]
332, Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code "<http://example.com/>"]
333, CodeBlock ("",[],[]) "or here: <http://example.com/>"
334, HorizontalRule
335, Header 1 [Str "Images"]
336, 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):"]
337, Para [Image [Str "lalune"] ("lalune.jpg","Voyage dans la Lune")]
338, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."]
339, HorizontalRule
340, Header 1 [Str "Footnotes"]
341, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference",Link [Str "(1)"] ("#note_1",""),Str ",",Space,Str "and",Space,Str "another",Link [Str "(longnote)"] ("#note_longnote",""),Str ".",Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space^(my",Space,Str "note)."]
342, Para [Link [Str "(1)"] ("#ref_1",""),Space,Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "in",Space,Str "the",Space,Str "document,",Space,Str "not",Space,Str "just",Space,Str "at",Space,Str "the",Space,Str "end."]
343, Para [Link [Str "(longnote)"] ("#ref_longnote",""),Space,Str "Here's",Space,Str "the",Space,Str "other",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."]
344, Para [Str "Caret",Space,Str "characters",Space,Str "are",Space,Str "used",Space,Str "to",Space,Str "indicate",Space,Str "that",Space,Str "the",Space,Str "blocks",Space,Str "all",Space,Str "belong",Space,Str "to",Space,Str "a",Space,Str "single",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "block",Space,Str "quotes)."]
345, CodeBlock ("",[],[]) " { <code> }"
346, Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "use",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "every",Space,Str "line,",Space,Str "as",Space,Str "with",Space,Str "blockquotes,",Space,Str "but",Space,Str "all",Space,Str "that",Space,Str "you",Space,Str "need",Space,Str "is",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "the",Space,Str "block",Space,Str "and",Space,Str "any",Space,Str "preceding",Space,Str "blank",Space,Str "lines."] ]