git.iko.soy/typeable/pandoc
on rc/2.11.3.1 help sign in
typeable/pandoc/test/latex-reader.native
416 lines 27 kB history raw
1Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Space,Str "MacFarlane"],MetaInlines [Str "Anonymous"]]),("date",MetaInlines [Str "July",Space,Str "17,",Space,Str "2006"]),("title",MetaInlines [Str "Pandoc",Space,Str "Test",Space,Str "Suite"])]})
2[RawBlock (Format "latex") "\\maketitle"
3,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",SoftBreak,Str "John",Space,Str "Gruber\8217s",Space,Str "markdown",Space,Str "test",Space,Str "suite."]
4,Div ("",["center"],[])
5 [HorizontalRule]
6,Header 1 ("headers",[],[]) [Str "Headers"]
7,Header 2 ("level-2-with-an-embedded-link",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Str "an",Space,Link ("",[],[]) [Str "embedded",Space,Str "link"] ("/url","")]
8,Header 3 ("level-3-with-emphasis",[],[]) [Str "Level",Space,Str "3",Space,Str "with",Space,Emph [Str "emphasis"]]
9,Para [Str "Level",Space,Str "4"]
10,Para [Str "Level",Space,Str "5"]
11,Header 1 ("level-1",[],[]) [Str "Level",Space,Str "1"]
12,Header 2 ("level-2-with-emphasis",[],[]) [Str "Level",Space,Str "2",Space,Str "with",Space,Emph [Str "emphasis"]]
13,Header 3 ("level-3",[],[]) [Str "Level",Space,Str "3"]
14,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
15,Header 2 ("level-2",[],[]) [Str "Level",Space,Str "2"]
16,Para [Str "with",Space,Str "no",Space,Str "blank",Space,Str "line"]
17,Div ("",["center"],[])
18 [HorizontalRule]
19,Header 1 ("paragraphs",[],[]) [Str "Paragraphs"]
20,Para [Str "Here\8217s",Space,Str "a",Space,Str "regular",Space,Str "paragraph."]
21,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",SoftBreak,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",SoftBreak,Str "looked",Space,Str "like",Space,Str "a",Space,Str "list",Space,Str "item."]
22,Para [Str "Here\8217s",Space,Str "one",Space,Str "with",Space,Str "a",Space,Str "bullet.",Space,Str "*",Space,Str "criminey."]
23,Para [Str "There",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "hard",Space,Str "line",Space,Str "break",LineBreak,Str "here."]
24,Div ("",["center"],[])
25 [HorizontalRule]
26,Header 1 ("block-quotes",[],[]) [Str "Block",Space,Str "Quotes"]
27,Para [Str "E-mail",Space,Str "style:"]
28,BlockQuote
29 [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."]]
30,BlockQuote
31 [Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"]
32 ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"
33 ,Para [Str "A",Space,Str "list:"]
34 ,OrderedList (1,Decimal,Period)
35 [[Para [Str "item",Space,Str "one"]]
36 ,[Para [Str "item",Space,Str "two"]]]
37 ,Para [Str "Nested",Space,Str "block",Space,Str "quotes:"]
38 ,BlockQuote
39 [Para [Str "nested"]]
40 ,BlockQuote
41 [Para [Str "nested"]]]
42,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."]
43,Para [Str "Box-style:"]
44,BlockQuote
45 [Para [Str "Example:"]
46 ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}"]
47,BlockQuote
48 [OrderedList (1,Decimal,Period)
49 [[Para [Str "do",Space,Str "laundry"]]
50 ,[Para [Str "take",Space,Str "out",Space,Str "the",Space,Str "trash"]]]]
51,Para [Str "Here\8217s",Space,Str "a",Space,Str "nested",Space,Str "one:"]
52,BlockQuote
53 [Para [Str "Joe",Space,Str "said:"]
54 ,BlockQuote
55 [Para [Str "Don\8217t",Space,Str "quote",Space,Str "me."]]]
56,Para [Str "And",Space,Str "a",Space,Str "following",Space,Str "paragraph."]
57,Div ("",["center"],[])
58 [HorizontalRule]
59,Header 1 ("code-blocks",[],[]) [Str "Code",Space,Str "Blocks"]
60,Para [Str "Code:"]
61,CodeBlock ("",[],[]) "---- (should be four hyphens)\n\nsub status {\n print \"working\";\n}\n\nthis code block is indented by one tab"
62,Para [Str "And:"]
63,CodeBlock ("",[],[]) " this code block is indented by two tabs\n\nThese should not be escaped: \\$ \\\\ \\> \\[ \\{"
64,Para [Str "this",Space,Str "has",Space,Emph [Str "two",LineBreak,Str "lines"]]
65,Div ("",["center"],[])
66 [HorizontalRule]
67,Header 1 ("lists",[],[]) [Str "Lists"]
68,Header 2 ("unordered",[],[]) [Str "Unordered"]
69,Para [Str "Asterisks",Space,Str "tight:"]
70,BulletList
71 [[Para [Str "asterisk",Space,Str "1"]]
72 ,[Para [Str "asterisk",Space,Str "2"]]
73 ,[Para [Str "asterisk",Space,Str "3"]]]
74,Para [Str "Asterisks",Space,Str "loose:"]
75,BulletList
76 [[Para [Str "asterisk",Space,Str "1"]]
77 ,[Para [Str "asterisk",Space,Str "2"]]
78 ,[Para [Str "asterisk",Space,Str "3"]]]
79,Para [Str "Pluses",Space,Str "tight:"]
80,BulletList
81 [[Para [Str "Plus",Space,Str "1"]]
82 ,[Para [Str "Plus",Space,Str "2"]]
83 ,[Para [Str "Plus",Space,Str "3"]]]
84,Para [Str "Pluses",Space,Str "loose:"]
85,BulletList
86 [[Para [Str "Plus",Space,Str "1"]]
87 ,[Para [Str "Plus",Space,Str "2"]]
88 ,[Para [Str "Plus",Space,Str "3"]]]
89,Para [Str "Minuses",Space,Str "tight:"]
90,BulletList
91 [[Para [Str "Minus",Space,Str "1"]]
92 ,[Para [Str "Minus",Space,Str "2"]]
93 ,[Para [Str "Minus",Space,Str "3"]]]
94,Para [Str "Minuses",Space,Str "loose:"]
95,BulletList
96 [[Para [Str "Minus",Space,Str "1"]]
97 ,[Para [Str "Minus",Space,Str "2"]]
98 ,[Para [Str "Minus",Space,Str "3"]]]
99,Header 2 ("ordered",[],[]) [Str "Ordered"]
100,Para [Str "Tight:"]
101,OrderedList (1,Decimal,Period)
102 [[Para [Str "First"]]
103 ,[Para [Str "Second"]]
104 ,[Para [Str "Third"]]]
105,Para [Str "and:"]
106,OrderedList (1,Decimal,Period)
107 [[Para [Str "One"]]
108 ,[Para [Str "Two"]]
109 ,[Para [Str "Three"]]]
110,Para [Str "Loose",Space,Str "using",Space,Str "tabs:"]
111,OrderedList (1,Decimal,Period)
112 [[Para [Str "First"]]
113 ,[Para [Str "Second"]]
114 ,[Para [Str "Third"]]]
115,Para [Str "and",Space,Str "using",Space,Str "spaces:"]
116,OrderedList (1,Decimal,Period)
117 [[Para [Str "One"]]
118 ,[Para [Str "Two"]]
119 ,[Para [Str "Three"]]]
120,Para [Str "Multiple",Space,Str "paragraphs:"]
121,OrderedList (1,Decimal,Period)
122 [[Para [Str "Item",Space,Str "1,",Space,Str "graf",Space,Str "one."]
123 ,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\8217s",SoftBreak,Str "back."]]
124 ,[Para [Str "Item",Space,Str "2."]]
125 ,[Para [Str "Item",Space,Str "3."]]]
126,Header 2 ("nested",[],[]) [Str "Nested"]
127,BulletList
128 [[Para [Str "Tab"]
129 ,BulletList
130 [[Para [Str "Tab"]
131 ,BulletList
132 [[Para [Str "Tab"]]]]]]]
133,Para [Str "Here\8217s",Space,Str "another:"]
134,OrderedList (1,Decimal,Period)
135 [[Para [Str "First"]]
136 ,[Para [Str "Second:"]
137 ,BulletList
138 [[Para [Str "Fee"]]
139 ,[Para [Str "Fie"]]
140 ,[Para [Str "Foe"]]]]
141 ,[Para [Str "Third"]]]
142,Para [Str "Same",Space,Str "thing",Space,Str "but",Space,Str "with",Space,Str "paragraphs:"]
143,OrderedList (1,Decimal,Period)
144 [[Para [Str "First"]]
145 ,[Para [Str "Second:"]
146 ,BulletList
147 [[Para [Str "Fee"]]
148 ,[Para [Str "Fie"]]
149 ,[Para [Str "Foe"]]]]
150 ,[Para [Str "Third"]]]
151,Header 2 ("tabs-and-spaces",[],[]) [Str "Tabs",Space,Str "and",Space,Str "spaces"]
152,BulletList
153 [[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "tabs"]]
154 ,[Para [Str "this",Space,Str "is",Space,Str "a",Space,Str "list",Space,Str "item",Space,Str "indented",Space,Str "with",Space,Str "spaces"]
155 ,BulletList
156 [[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"]]
157 ,[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"]]]]]
158,Header 2 ("fancy-list-markers",[],[]) [Str "Fancy",Space,Str "list",Space,Str "markers"]
159,OrderedList (2,Decimal,TwoParens)
160 [[Para [Str "begins",Space,Str "with",Space,Str "2"]]
161 ,[Para [Str "and",Space,Str "now",Space,Str "3"]
162 ,Para [Str "with",Space,Str "a",Space,Str "continuation"]
163 ,OrderedList (4,LowerRoman,Period)
164 [[Para [Str "sublist",Space,Str "with",Space,Str "roman",Space,Str "numerals,",Space,Str "starting",Space,Str "with",Space,Str "4"]]
165 ,[Para [Str "more",Space,Str "items"]
166 ,OrderedList (1,UpperAlpha,TwoParens)
167 [[Para [Str "a",Space,Str "subsublist"]]
168 ,[Para [Str "a",Space,Str "subsublist"]]]]]]]
169,Para [Str "Nesting:"]
170,OrderedList (1,UpperAlpha,Period)
171 [[Para [Str "Upper",Space,Str "Alpha"]
172 ,OrderedList (1,UpperRoman,Period)
173 [[Para [Str "Upper",Space,Str "Roman."]
174 ,OrderedList (6,Decimal,TwoParens)
175 [[Para [Str "Decimal",Space,Str "start",Space,Str "with",Space,Str "6"]
176 ,OrderedList (3,LowerAlpha,OneParen)
177 [[Para [Str "Lower",Space,Str "alpha",Space,Str "with",Space,Str "paren"]]]]]]]]]
178,Para [Str "Autonumbering:"]
179,OrderedList (1,DefaultStyle,DefaultDelim)
180 [[Para [Str "Autonumber."]]
181 ,[Para [Str "More."]
182 ,OrderedList (1,DefaultStyle,DefaultDelim)
183 [[Para [Str "Nested."]]]]]
184,Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"]
185,Para [Str "M.A.",Space,Str "2007"]
186,Para [Str "B.",Space,Str "Williams"]
187,Div ("",["center"],[])
188 [HorizontalRule]
189,Header 1 ("definition-lists",[],[]) [Str "Definition",Space,Str "Lists"]
190,Para [Str "Tight",Space,Str "using",Space,Str "spaces:"]
191,DefinitionList
192 [([Str "apple"],
193 [[Para [Str "red",Space,Str "fruit"]]])
194 ,([Str "orange"],
195 [[Para [Str "orange",Space,Str "fruit"]]])
196 ,([Str "banana"],
197 [[Para [Str "yellow",Space,Str "fruit"]]])]
198,Para [Str "Tight",Space,Str "using",Space,Str "tabs:"]
199,DefinitionList
200 [([Str "apple"],
201 [[Para [Str "red",Space,Str "fruit"]]])
202 ,([Str "orange"],
203 [[Para [Str "orange",Space,Str "fruit"]]])
204 ,([Str "banana"],
205 [[Para [Str "yellow",Space,Str "fruit"]]])]
206,Para [Str "Loose:"]
207,DefinitionList
208 [([Str "apple"],
209 [[Para [Str "red",Space,Str "fruit"]]])
210 ,([Str "orange"],
211 [[Para [Str "orange",Space,Str "fruit"]]])
212 ,([Str "banana"],
213 [[Para [Str "yellow",Space,Str "fruit"]]])]
214,Para [Str "Multiple",Space,Str "blocks",Space,Str "with",Space,Str "italics:"]
215,DefinitionList
216 [([Emph [Str "apple"]],
217 [[Para [Str "red",Space,Str "fruit"]
218 ,Para [Str "contains",Space,Str "seeds,",Space,Str "crisp,",Space,Str "pleasant",Space,Str "to",Space,Str "taste"]]])
219 ,([Emph [Str "orange"]],
220 [[Para [Str "orange",Space,Str "fruit"]
221 ,CodeBlock ("",[],[]) "{ orange code block }"
222 ,BlockQuote
223 [Para [Str "orange",Space,Str "block",Space,Str "quote"]]]])]
224,Header 1 ("html-blocks",[],[]) [Str "HTML",Space,Str "Blocks"]
225,Para [Str "Simple",Space,Str "block",Space,Str "on",Space,Str "one",Space,Str "line:"]
226,Para [Str "foo",SoftBreak,Str "And",Space,Str "nested",Space,Str "without",Space,Str "indentation:"]
227,Para [Str "foo",SoftBreak,Str "bar",SoftBreak,Str "Interpreted",Space,Str "markdown",Space,Str "in",Space,Str "a",Space,Str "table:"]
228,Para [Str "This",Space,Str "is",Space,Emph [Str "emphasized"],SoftBreak,Str "And",Space,Str "this",Space,Str "is",Space,Strong [Str "strong"],SoftBreak,Str "Here\8217s",Space,Str "a",Space,Str "simple",Space,Str "block:"]
229,Para [Str "foo",SoftBreak,Str "This",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "code",Space,Str "block,",Space,Str "though:"]
230,CodeBlock ("",[],[]) "<div>\n foo\n</div>"
231,Para [Str "As",Space,Str "should",Space,Str "this:"]
232,CodeBlock ("",[],[]) "<div>foo</div>"
233,Para [Str "Now,",Space,Str "nested:"]
234,Para [Str "foo",SoftBreak,Str "This",Space,Str "should",Space,Str "just",Space,Str "be",Space,Str "an",Space,Str "HTML",Space,Str "comment:"]
235,Para [Str "Multiline:"]
236,Para [Str "Code",Space,Str "block:"]
237,CodeBlock ("",[],[]) "<!-- Comment -->"
238,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:"]
239,Para [Str "Code:"]
240,CodeBlock ("",[],[]) "<hr />"
241,Para [Str "Hr\8217s:"]
242,Div ("",["center"],[])
243 [HorizontalRule]
244,Header 1 ("inline-markup",[],[]) [Str "Inline",Space,Str "Markup"]
245,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 "."]
246,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 "."]
247,Para [Str "An",Space,Emph [Link ("",[],[]) [Str "emphasized",Space,Str "link"] ("/url","")],Str "."]
248,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
249,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
250,Para [Strong [Emph [Str "This",Space,Str "is",Space,Str "strong",Space,Str "and",Space,Str "em."]]]
251,Para [Str "So",Space,Str "is",Space,Strong [Emph [Str "this"]],Space,Str "word."]
252,Para [Str "This",Space,Str "is",Space,Str "code:",Space,Code ("",[],[]) ">",Str ",",Space,Code ("",[],[]) "$",Str ",",Space,Code ("",[],[]) "\\",Str ",",Space,Code ("",[],[]) "\\$",Str ",",SoftBreak,Code ("",[],[]) "<html>",Str "."]
253,Para [Strikeout [Str "This",Space,Str "is",Space,Emph [Str "strikeout"],Str "."]]
254,Para [Str "Superscripts:",Space,Str "a",Superscript [Str "bc"],Str "d",SoftBreak,Str "a",Superscript [Emph [Str "hello"]],Space,Str "a",Superscript [Str "hello",Space,Str "there"],Str "."]
255,Para [Str "Subscripts:",Space,Str "H",Subscript [Str "2"],Str "O,",Space,Str "H",Subscript [Str "23"],Str "O,",SoftBreak,Str "H",Subscript [Str "many",Space,Str "of",Space,Str "them"],Str "O."]
256,Para [Str "These",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "superscripts",Space,Str "or",Space,Str "subscripts,",Space,Str "because",Space,Str "of",Space,Str "the",SoftBreak,Str "unescaped",Space,Str "spaces:",Space,Str "a^b",Space,Str "c^d,",Space,Str "a",Math InlineMath "\\sim",Str "b",SoftBreak,Str "c",Math InlineMath "\\sim",Str "d."]
257,Div ("",["center"],[])
258 [HorizontalRule]
259,Header 1 ("smart-quotes-ellipses-dashes",[],[]) [Str "Smart",Space,Str "quotes,",Space,Str "ellipses,",Space,Str "dashes"]
260,Para [Quoted DoubleQuote [Str "Hello,"],Space,Str "said",Space,Str "the",Space,Str "spider.",Space,Quoted DoubleQuote [Str "\8198",Quoted SingleQuote [Str "Shelob"],Space,Str "is",Space,Str "my",Space,Str "name."]]
261,Para [Quoted SingleQuote [Str "A"],Str ",",Space,Quoted SingleQuote [Str "B"],Str ",",Space,Str "and",Space,Quoted SingleQuote [Str "C"],Space,Str "are",Space,Str "letters."]
262,Para [Quoted SingleQuote [Str "Oak,"],Space,Quoted SingleQuote [Str "elm,"],Space,Str "and",Space,Quoted SingleQuote [Str "beech"],Space,Str "are",Space,Str "names",Space,Str "of",Space,Str "trees.",Space,Str "So",Space,Str "is",Space,Quoted SingleQuote [Str "pine."]]
263,Para [Quoted SingleQuote [Str "He",Space,Str "said,",Space,Quoted DoubleQuote [Str "I",Space,Str "want",Space,Str "to",Space,Str "go."],Str "\8198"],Space,Str "Were",Space,Str "you",Space,Str "alive",Space,Str "in",Space,Str "the",Space,Str "70\8217s?"]
264,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "quoted",Space,Quoted SingleQuote [Code ("",[],[]) "code"],Space,Str "and",Space,Str "a",SoftBreak,Quoted DoubleQuote [Link ("",[],[]) [Str "quoted",Space,Str "link"] ("http://example.com/?foo=1&bar=2","")],Str "."]
265,Para [Str "Some",Space,Str "dashes:",Space,Str "one\8212two\8212three\8212four\8212five."]
266,Para [Str "Dashes",Space,Str "between",Space,Str "numbers:",Space,Str "5\8211\&7,",Space,Str "255\8211\&66,",Space,Str "1987\8211\&1999."]
267,Para [Str "Ellipses\8230and\8230and\8230."]
268,Div ("",["center"],[])
269 [HorizontalRule]
270,Header 1 ("latex",[],[]) [Str "LaTeX"]
271,BulletList
272 [[Para [Cite [Citation {citationId = "smith.1899", citationPrefix = [], citationSuffix = [Str "22-23"], citationMode = NormalCitation, citationNoteNum = 0, citationHash = 0}] [RawInline (Format "latex") "\\cite[22-23]{smith.1899}"]]]
273 ,[RawBlock (Format "latex") "\\doublespacing"]
274 ,[Para [Math InlineMath "2+2=4"]]
275 ,[Para [Math InlineMath "x \\in y"]]
276 ,[Para [Math InlineMath "\\alpha \\wedge \\omega"]]
277 ,[Para [Math InlineMath "223"]]
278 ,[Para [Math InlineMath "p",Str "-Tree"]]
279 ,[Para [Math InlineMath "\\frac{d}{dx}f(x)=\\lim_{h\\to 0}\\frac{f(x+h)-f(x)}{h}"]]
280 ,[Para [Str "Here\8217s",Space,Str "one",Space,Str "that",Space,Str "has",Space,Str "a",Space,Str "line",Space,Str "break",Space,Str "in",Space,Str "it:",SoftBreak,Math InlineMath "\\alpha + \\omega \\times x^2",Str "."]]]
281,Para [Str "These",Space,Str "shouldn\8217t",Space,Str "be",Space,Str "math:"]
282,BulletList
283 [[Para [Str "To",Space,Str "get",Space,Str "the",Space,Str "famous",Space,Str "equation,",Space,Str "write",Space,Code ("",[],[]) "$e = mc^2$",Str "."]]
284 ,[Para [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",SoftBreak,Quoted DoubleQuote [Str "lot"],Space,Str "is",Space,Str "emphasized.)"]]
285 ,[Para [Str "Escaped",Space,Code ("",[],[]) "$",Str ":",Space,Str "$73",Space,Emph [Str "this",Space,Str "should",Space,Str "be",Space,Str "emphasized"],Space,Str "23$."]]]
286,Para [Str "Here\8217s",Space,Str "a",Space,Str "LaTeX",Space,Str "table:"]
287,Table ("",[],[]) (Caption Nothing
288 [])
289 [(AlignLeft,ColWidthDefault)
290 ,(AlignLeft,ColWidthDefault)]
291 (TableHead ("",[],[])
292 [Row ("",[],[])
293 [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
294 [Plain [Str "Animal"]]
295 ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
296 [Plain [Str "Number"]]]])
297 [(TableBody ("",[],[]) (RowHeadColumns 0)
298 []
299 [Row ("",[],[])
300 [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
301 [Plain [Str "Dog"]]
302 ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
303 [Plain [Str "2"]]]
304 ,Row ("",[],[])
305 [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
306 [Plain [Str "Cat"]]
307 ,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
308 [Plain [Str "1"]]]])]
309 (TableFoot ("",[],[])
310 [])
311,Para [Str "A",Space,Str "table",Space,Str "with",Space,Str "one",Space,Str "column:"]
312,Table ("",[],[]) (Caption Nothing
313 [])
314 [(AlignCenter,ColWidthDefault)]
315 (TableHead ("",[],[])
316 [])
317 [(TableBody ("",[],[]) (RowHeadColumns 0)
318 []
319 [Row ("",[],[])
320 [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
321 [Plain [Str "Animal"]]]
322 ,Row ("",[],[])
323 [Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
324 [Plain [Str "Vegetable"]]]])]
325 (TableFoot ("",[],[])
326 [])
327,Div ("",["center"],[])
328 [HorizontalRule]
329,Header 1 ("special-characters",[],[]) [Str "Special",Space,Str "Characters"]
330,Para [Str "Here",Space,Str "is",Space,Str "some",Space,Str "unicode:"]
331,BulletList
332 [[Para [Str "I",Space,Str "hat:",Space,Str "\206"]]
333 ,[Para [Str "o",Space,Str "umlaut:",Space,Str "\246"]]
334 ,[Para [Str "section:",Space,Str "\167"]]
335 ,[Para [Str "set",Space,Str "membership:",Space,Str "\8712"]]
336 ,[Para [Str "copyright:",Space,Str "\169"]]]
337,Para [Str "AT&T",Space,Str "has",Space,Str "an",Space,Str "ampersand",Space,Str "in",Space,Str "their",Space,Str "name."]
338,Para [Str "AT&T",Space,Str "is",Space,Str "another",Space,Str "way",Space,Str "to",Space,Str "write",Space,Str "it."]
339,Para [Str "This",Space,Str "&",Space,Str "that."]
340,Para [Str "4",Space,Str "<",Space,Str "5."]
341,Para [Str "6",Space,Str ">",Space,Str "5."]
342,Para [Str "Backslash:",Space,Str "\\"]
343,Para [Str "Backtick:",Space,Str "\8216"]
344,Para [Str "Asterisk:",Space,Str "*"]
345,Para [Str "Underscore:",Space,Str "_"]
346,Para [Str "Left",Space,Str "brace:",Space,Str "{"]
347,Para [Str "Right",Space,Str "brace:",Space,Str "}"]
348,Para [Str "Left",Space,Str "bracket:",Space,Str "["]
349,Para [Str "Right",Space,Str "bracket:",Space,Str "]"]
350,Para [Str "Left",Space,Str "paren:",Space,Str "("]
351,Para [Str "Right",Space,Str "paren:",Space,Str ")"]
352,Para [Str "Greater-than:",Space,Str ">"]
353,Para [Str "Hash:",Space,Str "#"]
354,Para [Str "Period:",Space,Str "."]
355,Para [Str "Bang:",Space,Str "!"]
356,Para [Str "Plus:",Space,Str "+"]
357,Para [Str "Minus:",Space,Str "-"]
358,Div ("",["center"],[])
359 [HorizontalRule]
360,Header 1 ("links",[],[]) [Str "Links"]
361,Header 2 ("explicit",[],[]) [Str "Explicit"]
362,Para [Str "Just",Space,Str "a",Space,Link ("",[],[]) [Str "URL"] ("/url/",""),Str "."]
363,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
364,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
365,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/",""),Str "."]
366,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","")]
367,Para [Link ("",[],[]) [Str "URL",Space,Str "and",Space,Str "title"] ("/url/","")]
368,Para [Link ("",[],[]) [Str "with_underscore"] ("/url/with_underscore","")]
369,Para [Link ("",[],[]) [Str "Email",Space,Str "link"] ("mailto:nobody@nowhere.net","")]
370,Para [Link ("",[],[]) [Str "Empty"] ("",""),Str "."]
371,Header 2 ("reference",[],[]) [Str "Reference"]
372,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
373,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
374,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
375,Para [Str "With",Space,Link ("",[],[]) [Str "embedded",Space,Str "[brackets]"] ("/url/",""),Str "."]
376,Para [Link ("",[],[]) [Str "b"] ("/url/",""),Space,Str "by",Space,Str "itself",Space,Str "should",Space,Str "be",Space,Str "a",Space,Str "link."]
377,Para [Str "Indented",Space,Link ("",[],[]) [Str "once"] ("/url",""),Str "."]
378,Para [Str "Indented",Space,Link ("",[],[]) [Str "twice"] ("/url",""),Str "."]
379,Para [Str "Indented",Space,Link ("",[],[]) [Str "thrice"] ("/url",""),Str "."]
380,Para [Str "This",Space,Str "should",Space,Str "[not][]",Space,Str "be",Space,Str "a",Space,Str "link."]
381,CodeBlock ("",[],[]) "[not]: /url"
382,Para [Str "Foo",Space,Link ("",[],[]) [Str "bar"] ("/url/",""),Str "."]
383,Para [Str "Foo",Space,Link ("",[],[]) [Str "biz"] ("/url/",""),Str "."]
384,Header 2 ("with-ampersands",[],[]) [Str "With",Space,Str "ampersands"]
385,Para [Str "Here\8217s",Space,Str "a",SoftBreak,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 "."]
386,Para [Str "Here\8217s",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:",SoftBreak,Link ("",[],[]) [Str "AT&T"] ("http://att.com/",""),Str "."]
387,Para [Str "Here\8217s",Space,Str "an",Space,Link ("",[],[]) [Str "inline",Space,Str "link"] ("/script?foo=1&bar=2",""),Str "."]
388,Para [Str "Here\8217s",Space,Str "an",SoftBreak,Link ("",[],[]) [Str "inline",Space,Str "link",Space,Str "in",Space,Str "pointy",Space,Str "braces"] ("/script?foo=1&bar=2",""),Str "."]
389,Header 2 ("autolinks",[],[]) [Str "Autolinks"]
390,Para [Str "With",Space,Str "an",Space,Str "ampersand:",Space,Link ("",[],[]) [Str "http://example.com/?foo=1&bar=2"] ("http://example.com/?foo=1&bar=2","")]
391,BulletList
392 [[Para [Str "In",Space,Str "a",Space,Str "list?"]]
393 ,[Para [Link ("",[],[]) [Str "http://example.com/"] ("http://example.com/","")]]
394 ,[Para [Str "It",Space,Str "should."]]]
395,Para [Str "An",Space,Str "e-mail",Space,Str "address:",SoftBreak,Link ("",[],[]) [Str "nobody@nowhere.net"] ("mailto:nobody@nowhere.net","")]
396,BlockQuote
397 [Para [Str "Blockquoted:",Space,Link ("",[],[]) [Str "http://example.com/"] ("http://example.com/","")]]
398,Para [Str "Auto-links",Space,Str "should",Space,Str "not",Space,Str "occur",Space,Str "here:",Space,Code ("",[],[]) "<http://example.com/>"]
399,CodeBlock ("",[],[]) "or here: <http://example.com/>"
400,Div ("",["center"],[])
401 [HorizontalRule]
402,Header 1 ("images",[],[]) [Str "Images"]
403,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"]
404,Para [Image ("",[],[]) [Str "image"] ("lalune.jpg","")]
405,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image ("",[],[]) [Str "image"] ("movie.jpg",""),Space,Str "icon."]
406,Div ("",["center"],[])
407 [HorizontalRule]
408,Header 1 ("footnotes",[],[]) [Str "Footnotes"]
409,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",SoftBreak,Str "reference,",Note [Para [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 "after",Space,Str "the",Space,Str "footnote",SoftBreak,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],SoftBreak,Str "and",SoftBreak,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",SoftBreak,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { <code> }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",SoftBreak,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],SoftBreak,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",SoftBreak,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",SoftBreak,Str "note.",Note [Para [Str "This",Space,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",SoftBreak,Link ("",[],[]) [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",SoftBreak,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]]
410,BlockQuote
411 [Para [Str "Notes",Space,Str "can",Space,Str "go",Space,Str "in",Space,Str "quotes.",Note [Para [Str "In",Space,Str "quote."]]]]
412,OrderedList (1,Decimal,Period)
413 [[Para [Str "And",Space,Str "in",Space,Str "list",Space,Str "items.",Note [Para [Str "In",Space,Str "list."]]]]]
414,Para [Str "This",Space,Str "paragraph",Space,Str "should",Space,Str "not",Space,Str "be",Space,Str "part",Space,Str "of",Space,Str "the",Space,Str "note,",Space,Str "as",Space,Str "it",Space,Str "is",Space,Str "not",SoftBreak,Str "indented."]
415,Header 1 ("escaped-characters",[],[]) [Str "Escaped",Space,Str "characters"]
416,Para [Str "$",Space,Str "%",Space,Str "&",Space,Str "#",Space,Str "_",Space,Str "{",Space,Str "}"]]