git.iko.soy/typeable/pandoc
on master help sign in
Updated tests for new HTML format.

Verified against old tests using tidy and diff.

commit90647a56f6a742e7ecc1cec44042e256ff94b802 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 4 Feb 2011, 20:37 (16 years ago) parent99cb607
11 files changed+1265−1673
tests/lhs-test.fragment.html+lhs+15−50 tests/lhs-test.html+15−50 tests/lhs-test.html+lhs+15−50 tests/lhs-test.nohl.html+16−27 tests/lhs-test.nohl.html+lhs+16−27 tests/s5.basic.html+24−18 tests/s5.fancy.html+26−22 tests/s5.fragment.html+15−17 tests/s5.inserts.html+15−17 tests/tables.html+234−301 tests/writer.html+874−1094
tests/lhs-test.fragment.html+lhs+15−50
@@ -1,50 +1,15 @@
1−<h1 id="lhs-test"
2−>lhs test</h1
3−><p
4−><code
5− >unsplit</code
6− > is an arrow that takes a pair of values and combines them to return a single value:</p
7−><pre class="sourceCode haskell"
8−><code
9− >&gt; <span class="ot"
10− >unsplit </span
11− ><span class="ot"
12− >::</span
13− > (<span class="dt"
14− >Arrow</span
15− > a) <span class="ot"
16− >=&gt;</span
17− > (b <span class="ot"
18− >-&gt;</span
19− > c <span class="ot"
20− >-&gt;</span
21− > d) <span class="ot"
22− >-&gt;</span
23− > a (b, c) d<br
24− />&gt; unsplit <span class="fu"
25− >=</span
26− > arr <span class="fu"
27− >.</span
28− > <span class="fu"
29− >uncurry</span
30− > <br
31− />&gt; <span class="co"
32− >-- arr (\op (x,y) -&gt; x `op` y) </span
33− ></code
34− ></pre
35−><p
36−><code
37− >(***)</code
38− > combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
39−><pre
40−><code
41− >f *** g = first f &gt;&gt;&gt; second g
42−</code
43− ></pre
44−><p
45−>Block quote:</p
46−><blockquote
47−><p
48− >foo bar</p
49− ></blockquote
50−>
1+<h1 id="lhs-test">lhs test</h1>
2+
3+<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
4+
5+<pre class="sourceCode haskell"><code>&gt; <span class="ot">unsplit </span><span class="ot">::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d<br/>&gt; unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span> <br/>&gt; <span class="co">-- arr (\op (x,y) -&gt; x `op` y) </span></code></pre>
6+
7+<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
8+
9+<pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
10+
11+<p>Block quote:</p>
12+
13+<blockquote>
14+<p>foo bar</p>
15+</blockquote>
tests/lhs-test.html+15−50
@@ -25,55 +25,20 @@ code.sourceCode span.er { color: red; font-weight: bold; }
2525 </style>
2626</head>
2727<body>
28−<h1 id="lhs-test"
29−>lhs test</h1
30−><p
31−><code
32− >unsplit</code
33− > is an arrow that takes a pair of values and combines them to return a single value:</p
34−><pre class="sourceCode"
35−><code class="sourceCode haskell"
36− ><span class="ot"
37− >unsplit </span
38− ><span class="ot"
39− >::</span
40− > (<span class="dt"
41− >Arrow</span
42− > a) <span class="ot"
43− >=&gt;</span
44− > (b <span class="ot"
45− >-&gt;</span
46− > c <span class="ot"
47− >-&gt;</span
48− > d) <span class="ot"
49− >-&gt;</span
50− > a (b, c) d<br
51− />unsplit <span class="fu"
52− >=</span
53− > arr <span class="fu"
54− >.</span
55− > <span class="fu"
56− >uncurry</span
57− > <br
58− /> <span class="co"
59− >-- arr (\op (x,y) -&gt; x `op` y) </span
60− ></code
61− ></pre
62−><p
63−><code
64− >(***)</code
65− > combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
66−><pre
67−><code
68− >f *** g = first f &gt;&gt;&gt; second g
69−</code
70− ></pre
71−><p
72−>Block quote:</p
73−><blockquote
74−><p
75− >foo bar</p
76− ></blockquote
77−>
28+<h1 id="lhs-test">lhs test</h1>
29+
30+<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
31+
32+<pre class="sourceCode"><code class="sourceCode haskell"><span class="ot">unsplit </span><span class="ot">::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d<br />unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span> <br /> <span class="co">-- arr (\op (x,y) -&gt; x `op` y) </span></code></pre>
33+
34+<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
35+
36+<pre><code>f *** g = first f &gt;&gt;&gt; second g
37+</code></pre>
38+
39+<p>Block quote:</p>
40+
41+<blockquote>
42+<p>foo bar</p></blockquote>
7843</body>
7944</html>
tests/lhs-test.html+lhs+15−50
@@ -25,55 +25,20 @@ code.sourceCode span.er { color: red; font-weight: bold; }
2525 </style>
2626</head>
2727<body>
28−<h1 id="lhs-test"
29−>lhs test</h1
30−><p
31−><code
32− >unsplit</code
33− > is an arrow that takes a pair of values and combines them to return a single value:</p
34−><pre class="sourceCode"
35−><code class="sourceCode haskell"
36− >&gt; <span class="ot"
37− >unsplit </span
38− ><span class="ot"
39− >::</span
40− > (<span class="dt"
41− >Arrow</span
42− > a) <span class="ot"
43− >=&gt;</span
44− > (b <span class="ot"
45− >-&gt;</span
46− > c <span class="ot"
47− >-&gt;</span
48− > d) <span class="ot"
49− >-&gt;</span
50− > a (b, c) d<br
51− />&gt; unsplit <span class="fu"
52− >=</span
53− > arr <span class="fu"
54− >.</span
55− > <span class="fu"
56− >uncurry</span
57− > <br
58− />&gt; <span class="co"
59− >-- arr (\op (x,y) -&gt; x `op` y) </span
60− ></code
61− ></pre
62−><p
63−><code
64− >(***)</code
65− > combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
66−><pre
67−><code
68− >f *** g = first f &gt;&gt;&gt; second g
69−</code
70− ></pre
71−><p
72−>Block quote:</p
73−><blockquote
74−><p
75− >foo bar</p
76− ></blockquote
77−>
28+<h1 id="lhs-test">lhs test</h1>
29+
30+<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
31+
32+<pre class="sourceCode"><code class="sourceCode haskell">&gt; <span class="ot">unsplit </span><span class="ot">::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d<br />&gt; unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span> <br />&gt; <span class="co">-- arr (\op (x,y) -&gt; x `op` y) </span></code></pre>
33+
34+<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
35+
36+<pre><code>f *** g = first f &gt;&gt;&gt; second g
37+</code></pre>
38+
39+<p>Block quote:</p>
40+
41+<blockquote>
42+<p>foo bar</p></blockquote>
7843</body>
7944</html>
tests/lhs-test.nohl.html+16−27
@@ -6,34 +6,23 @@
66 <title></title>
77</head>
88<body>
9−<h1 id="lhs-test"
10−>lhs test</h1
11−><p
12−><code
13− >unsplit</code
14− > is an arrow that takes a pair of values and combines them to return a single value:</p
15−><pre class="sourceCode haskell"
16−><code
17− >unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
9+<h1 id="lhs-test">lhs test</h1>
10+
11+<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
12+
13+<pre class="sourceCode haskell"><code>unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
1814unsplit = arr . uncurry
1915 -- arr (\op (x,y) -&gt; x `op` y)
20−</code
21− ></pre
22−><p
23−><code
24− >(***)</code
25− > combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
26−><pre
27−><code
28− >f *** g = first f &gt;&gt;&gt; second g
29−</code
30− ></pre
31−><p
32−>Block quote:</p
33−><blockquote
34−><p
35− >foo bar</p
36− ></blockquote
37−>
16+</code></pre>
17+
18+<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
19+
20+<pre><code>f *** g = first f &gt;&gt;&gt; second g
21+</code></pre>
22+
23+<p>Block quote:</p>
24+
25+<blockquote>
26+<p>foo bar</p></blockquote>
3827</body>
3928</html>
tests/lhs-test.nohl.html+lhs+16−27
@@ -6,34 +6,23 @@
66 <title></title>
77</head>
88<body>
9−<h1 id="lhs-test"
10−>lhs test</h1
11−><p
12−><code
13− >unsplit</code
14− > is an arrow that takes a pair of values and combines them to return a single value:</p
15−><pre class="sourceCode literate haskell"
16−><code
17− >&gt; unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
9+<h1 id="lhs-test">lhs test</h1>
10+
11+<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
12+
13+<pre class="sourceCode literate haskell"><code>&gt; unsplit :: (Arrow a) =&gt; (b -&gt; c -&gt; d) -&gt; a (b, c) d
1814&gt; unsplit = arr . uncurry
1915&gt; -- arr (\op (x,y) -&gt; x `op` y)
20−</code
21− ></pre
22−><p
23−><code
24− >(***)</code
25− > combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p
26−><pre
27−><code
28− >f *** g = first f &gt;&gt;&gt; second g
29−</code
30− ></pre
31−><p
32−>Block quote:</p
33−><blockquote
34−><p
35− >foo bar</p
36− ></blockquote
37−>
16+</code></pre>
17+
18+<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
19+
20+<pre><code>f *** g = first f &gt;&gt;&gt; second g
21+</code></pre>
22+
23+<p>Block quote:</p>
24+
25+<blockquote>
26+<p>foo bar</p></blockquote>
3827</body>
3928</html>
tests/s5.basic.html+24−18
@@ -35,25 +35,31 @@
3535 <h4>July 15, 2006</h4>
3636</div>
3737<div class="slide">
38−<h1
39−>First slide</h1
40−><ul
41−><li
42− >first bullet</li
43− ><li
44− >second bullet</li
45− ></ul
46−></div>
38+
39+
40+<h1>First slide</h1>
41+
42+<ul>
43+<li>
44+first bullet</li>
45+<li>
46+second bullet</li>
47+</ul>
48+
49+</div>
50+
51+
4752<div class="slide">
48−<h1
49−>Math</h1
50−><ul
51−><li
52− ><span class="math"
53− >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
54− ></li
55− ></ul
56−></div>
53+
54+
55+<h1>Math</h1>
56+
57+<ul>
58+<li>
59+<span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
60+</ul>
61+
62+</div>
5763</div>
5864</body>
5965</html>
tests/s5.fancy.html+26−22
@@ -17,8 +17,7 @@
1717 <link rel="stylesheet" href="ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
1818 <!-- S5 JS -->
1919 <script src="ui/default/slides.js" type="text/javascript"></script>
20− <script type="text/javascript"
21− >/*
20+ <script type="text/javascript">/*
2221 LaTeXMathML.js from http://math.etsu.edu/LaTeXMathML/
2322 Adapted by Jeff Knisely and Douglas Woodall from ASCIIMathML.js v. 1.4.7,
2423 (c) 2005 Peter Jipsen http://www.chapman.edu/~jipsen.
@@ -216,8 +215,7 @@
216215 {existing();generic();};}
217216 else
218217 {window.onload=generic;}}
219− </script
220− >
218+ </script>
221219</head>
222220<body>
223221<div class="layout">
@@ -236,25 +234,31 @@
236234 <h4>July 15, 2006</h4>
237235</div>
238236<div class="slide">
239−<h1
240−>First slide</h1
241−><ul class="incremental"
242−><li
243− >first bullet</li
244− ><li
245− >second bullet</li
246− ></ul
247−></div>
237+
238+
239+<h1>First slide</h1>
240+
241+<ul class="incremental">
242+<li>
243+first bullet</li>
244+<li>
245+second bullet</li>
246+</ul>
247+
248+</div>
249+
250+
248251<div class="slide">
249−<h1
250−>Math</h1
251−><ul class="incremental"
252−><li
253− ><span class="LaTeX"
254− >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
255− ></li
256− ></ul
257−></div>
252+
253+
254+<h1>Math</h1>
255+
256+<ul class="incremental">
257+<li>
258+<span class="LaTeX">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
259+</ul>
260+
261+</div>
258262</div>
259263</body>
260264</html>
tests/s5.fragment.html+15−17
@@ -1,17 +1,15 @@
1−<h1 id="first-slide"
2−>First slide</h1
3−><ul
4−><li
5− >first bullet</li
6− ><li
7− >second bullet</li
8− ></ul
9−><h1 id="math"
10−>Math</h1
11−><ul
12−><li
13− ><span class="math"
14− >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
15− ></li
16− ></ul
17−>
1+<h1 id="first-slide">First slide</h1>
2+
3+<ul>
4+<li>
5+first bullet</li>
6+<li>
7+second bullet</li>
8+</ul>
9+
10+<h1 id="math">Math</h1>
11+
12+<ul>
13+<li>
14+<span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
15+</ul>
tests/s5.inserts.html+15−17
@@ -13,23 +13,21 @@
1313<body>
1414STUFF INSERTED
1515<h1 class="title">My S5 Document</h1>
16−<h1 id="first-slide"
17−>First slide</h1
18−><ul
19−><li
20− >first bullet</li
21− ><li
22− >second bullet</li
23− ></ul
24−><h1 id="math"
25−>Math</h1
26−><ul
27−><li
28− ><span class="math"
29− >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
30− ></li
31− ></ul
32−>
16+<h1 id="first-slide">First slide</h1>
17+
18+<ul>
19+<li>
20+first bullet</li>
21+<li>
22+second bullet</li>
23+</ul>
24+
25+<h1 id="math">Math</h1>
26+
27+<ul>
28+<li>
29+<span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span></li>
30+</ul>
3331STUFF INSERTED
3432</body>
3533</html>
tests/tables.html+234−301
@@ -1,301 +1,234 @@
1−<p
2−>Simple table with caption:</p
3−><table
4−><caption
5− >Demonstration of simple table syntax.</caption
6− ><thead
7− ><tr class="header"
8− ><th align="right"
9− >Right</th
10− ><th align="left"
11− >Left</th
12− ><th align="center"
13− >Center</th
14− ><th align="left"
15− >Default</th
16− ></tr
17− ></thead
18− ><tbody
19− ><tr class="odd"
20− ><td align="right"
21− >12</td
22− ><td align="left"
23− >12</td
24− ><td align="center"
25− >12</td
26− ><td align="left"
27− >12</td
28− ></tr
29− ><tr class="even"
30− ><td align="right"
31− >123</td
32− ><td align="left"
33− >123</td
34− ><td align="center"
35− >123</td
36− ><td align="left"
37− >123</td
38− ></tr
39− ><tr class="odd"
40− ><td align="right"
41− >1</td
42− ><td align="left"
43− >1</td
44− ><td align="center"
45− >1</td
46− ><td align="left"
47− >1</td
48− ></tr
49− ></tbody
50− ></table
51−><p
52−>Simple table without caption:</p
53−><table
54−><thead
55− ><tr class="header"
56− ><th align="right"
57− >Right</th
58− ><th align="left"
59− >Left</th
60− ><th align="center"
61− >Center</th
62− ><th align="left"
63− >Default</th
64− ></tr
65− ></thead
66− ><tbody
67− ><tr class="odd"
68− ><td align="right"
69− >12</td
70− ><td align="left"
71− >12</td
72− ><td align="center"
73− >12</td
74− ><td align="left"
75− >12</td
76− ></tr
77− ><tr class="even"
78− ><td align="right"
79− >123</td
80− ><td align="left"
81− >123</td
82− ><td align="center"
83− >123</td
84− ><td align="left"
85− >123</td
86− ></tr
87− ><tr class="odd"
88− ><td align="right"
89− >1</td
90− ><td align="left"
91− >1</td
92− ><td align="center"
93− >1</td
94− ><td align="left"
95− >1</td
96− ></tr
97− ></tbody
98− ></table
99−><p
100−>Simple table indented two spaces:</p
101−><table
102−><caption
103− >Demonstration of simple table syntax.</caption
104− ><thead
105− ><tr class="header"
106− ><th align="right"
107− >Right</th
108− ><th align="left"
109− >Left</th
110− ><th align="center"
111− >Center</th
112− ><th align="left"
113− >Default</th
114− ></tr
115− ></thead
116− ><tbody
117− ><tr class="odd"
118− ><td align="right"
119− >12</td
120− ><td align="left"
121− >12</td
122− ><td align="center"
123− >12</td
124− ><td align="left"
125− >12</td
126− ></tr
127− ><tr class="even"
128− ><td align="right"
129− >123</td
130− ><td align="left"
131− >123</td
132− ><td align="center"
133− >123</td
134− ><td align="left"
135− >123</td
136− ></tr
137− ><tr class="odd"
138− ><td align="right"
139− >1</td
140− ><td align="left"
141− >1</td
142− ><td align="center"
143− >1</td
144− ><td align="left"
145− >1</td
146− ></tr
147− ></tbody
148− ></table
149−><p
150−>Multiline table with caption:</p
151−><table
152−><caption
153− >Here's the caption. It may span multiple lines.</caption
154− ><col width="15%"
155− /><col width="13%"
156− /><col width="16%"
157− /><col width="33%"
158− /><thead
159− ><tr class="header"
160− ><th align="center"
161− >Centered Header</th
162− ><th align="left"
163− >Left Aligned</th
164− ><th align="right"
165− >Right Aligned</th
166− ><th align="left"
167− >Default aligned</th
168− ></tr
169− ></thead
170− ><tbody
171− ><tr class="odd"
172− ><td align="center"
173− >First</td
174− ><td align="left"
175− >row</td
176− ><td align="right"
177− >12.0</td
178− ><td align="left"
179− >Example of a row that spans multiple lines.</td
180− ></tr
181− ><tr class="even"
182− ><td align="center"
183− >Second</td
184− ><td align="left"
185− >row</td
186− ><td align="right"
187− >5.0</td
188− ><td align="left"
189− >Here's another one. Note the blank line between rows.</td
190− ></tr
191− ></tbody
192− ></table
193−><p
194−>Multiline table without caption:</p
195−><table
196−><col width="15%"
197− /><col width="13%"
198− /><col width="16%"
199− /><col width="33%"
200− /><thead
201− ><tr class="header"
202− ><th align="center"
203− >Centered Header</th
204− ><th align="left"
205− >Left Aligned</th
206− ><th align="right"
207− >Right Aligned</th
208− ><th align="left"
209− >Default aligned</th
210− ></tr
211− ></thead
212− ><tbody
213− ><tr class="odd"
214− ><td align="center"
215− >First</td
216− ><td align="left"
217− >row</td
218− ><td align="right"
219− >12.0</td
220− ><td align="left"
221− >Example of a row that spans multiple lines.</td
222− ></tr
223− ><tr class="even"
224− ><td align="center"
225− >Second</td
226− ><td align="left"
227− >row</td
228− ><td align="right"
229− >5.0</td
230− ><td align="left"
231− >Here's another one. Note the blank line between rows.</td
232− ></tr
233− ></tbody
234− ></table
235−><p
236−>Table without column headers:</p
237−><table
238−><tbody
239− ><tr class="odd"
240− ><td align="right"
241− >12</td
242− ><td align="left"
243− >12</td
244− ><td align="center"
245− >12</td
246− ><td align="right"
247− >12</td
248− ></tr
249− ><tr class="even"
250− ><td align="right"
251− >123</td
252− ><td align="left"
253− >123</td
254− ><td align="center"
255− >123</td
256− ><td align="right"
257− >123</td
258− ></tr
259− ><tr class="odd"
260− ><td align="right"
261− >1</td
262− ><td align="left"
263− >1</td
264− ><td align="center"
265− >1</td
266− ><td align="right"
267− >1</td
268− ></tr
269− ></tbody
270− ></table
271−><p
272−>Multiline table without column headers:</p
273−><table
274−><col width="15%"
275− /><col width="13%"
276− /><col width="16%"
277− /><col width="33%"
278− /><tbody
279− ><tr class="odd"
280− ><td align="center"
281− >First</td
282− ><td align="left"
283− >row</td
284− ><td align="right"
285− >12.0</td
286− ><td align="left"
287− >Example of a row that spans multiple lines.</td
288− ></tr
289− ><tr class="even"
290− ><td align="center"
291− >Second</td
292− ><td align="left"
293− >row</td
294− ><td align="right"
295− >5.0</td
296− ><td align="left"
297− >Here's another one. Note the blank line between rows.</td
298− ></tr
299− ></tbody
300− ></table
301−>
1+<p>Simple table with caption:</p>
2+
3+<table><caption>Demonstration of simple table syntax.</caption><thead><tr class="header"><th align="right">
4+Right</th>
5+<th align="left">
6+Left</th>
7+<th align="center">
8+Center</th>
9+<th align="left">
10+Default</th>
11+</tr>
12+</thead><tbody><tr class="odd"><td align="right">
13+12</td>
14+<td align="left">
15+12</td>
16+<td align="center">
17+12</td>
18+<td align="left">
19+12</td>
20+</tr>
21+<tr class="even"><td align="right">
22+123</td>
23+<td align="left">
24+123</td>
25+<td align="center">
26+123</td>
27+<td align="left">
28+123</td>
29+</tr>
30+<tr class="odd"><td align="right">
31+1</td>
32+<td align="left">
33+1</td>
34+<td align="center">
35+1</td>
36+<td align="left">
37+1</td>
38+</tr>
39+</tbody></table>
40+
41+<p>Simple table without caption:</p>
42+
43+<table><thead><tr class="header"><th align="right">
44+Right</th>
45+<th align="left">
46+Left</th>
47+<th align="center">
48+Center</th>
49+<th align="left">
50+Default</th>
51+</tr>
52+</thead><tbody><tr class="odd"><td align="right">
53+12</td>
54+<td align="left">
55+12</td>
56+<td align="center">
57+12</td>
58+<td align="left">
59+12</td>
60+</tr>
61+<tr class="even"><td align="right">
62+123</td>
63+<td align="left">
64+123</td>
65+<td align="center">
66+123</td>
67+<td align="left">
68+123</td>
69+</tr>
70+<tr class="odd"><td align="right">
71+1</td>
72+<td align="left">
73+1</td>
74+<td align="center">
75+1</td>
76+<td align="left">
77+1</td>
78+</tr>
79+</tbody></table>
80+
81+<p>Simple table indented two spaces:</p>
82+
83+<table><caption>Demonstration of simple table syntax.</caption><thead><tr class="header"><th align="right">
84+Right</th>
85+<th align="left">
86+Left</th>
87+<th align="center">
88+Center</th>
89+<th align="left">
90+Default</th>
91+</tr>
92+</thead><tbody><tr class="odd"><td align="right">
93+12</td>
94+<td align="left">
95+12</td>
96+<td align="center">
97+12</td>
98+<td align="left">
99+12</td>
100+</tr>
101+<tr class="even"><td align="right">
102+123</td>
103+<td align="left">
104+123</td>
105+<td align="center">
106+123</td>
107+<td align="left">
108+123</td>
109+</tr>
110+<tr class="odd"><td align="right">
111+1</td>
112+<td align="left">
113+1</td>
114+<td align="center">
115+1</td>
116+<td align="left">
117+1</td>
118+</tr>
119+</tbody></table>
120+
121+<p>Multiline table with caption:</p>
122+
123+<table><caption>Here's the caption. It may span multiple lines.</caption><col width="15%" /><col width="13%" /><col width="16%" /><col width="33%" /><thead><tr class="header"><th align="center">
124+Centered Header</th>
125+<th align="left">
126+Left Aligned</th>
127+<th align="right">
128+Right Aligned</th>
129+<th align="left">
130+Default aligned</th>
131+</tr>
132+</thead><tbody><tr class="odd"><td align="center">
133+First</td>
134+<td align="left">
135+row</td>
136+<td align="right">
137+12.0</td>
138+<td align="left">
139+Example of a row that spans multiple lines.</td>
140+</tr>
141+<tr class="even"><td align="center">
142+Second</td>
143+<td align="left">
144+row</td>
145+<td align="right">
146+5.0</td>
147+<td align="left">
148+Here's another one. Note the blank line between rows.</td>
149+</tr>
150+</tbody></table>
151+
152+<p>Multiline table without caption:</p>
153+
154+<table><col width="15%" /><col width="13%" /><col width="16%" /><col width="33%" /><thead><tr class="header"><th align="center">
155+Centered Header</th>
156+<th align="left">
157+Left Aligned</th>
158+<th align="right">
159+Right Aligned</th>
160+<th align="left">
161+Default aligned</th>
162+</tr>
163+</thead><tbody><tr class="odd"><td align="center">
164+First</td>
165+<td align="left">
166+row</td>
167+<td align="right">
168+12.0</td>
169+<td align="left">
170+Example of a row that spans multiple lines.</td>
171+</tr>
172+<tr class="even"><td align="center">
173+Second</td>
174+<td align="left">
175+row</td>
176+<td align="right">
177+5.0</td>
178+<td align="left">
179+Here's another one. Note the blank line between rows.</td>
180+</tr>
181+</tbody></table>
182+
183+<p>Table without column headers:</p>
184+
185+<table><tbody><tr class="odd"><td align="right">
186+12</td>
187+<td align="left">
188+12</td>
189+<td align="center">
190+12</td>
191+<td align="right">
192+12</td>
193+</tr>
194+<tr class="even"><td align="right">
195+123</td>
196+<td align="left">
197+123</td>
198+<td align="center">
199+123</td>
200+<td align="right">
201+123</td>
202+</tr>
203+<tr class="odd"><td align="right">
204+1</td>
205+<td align="left">
206+1</td>
207+<td align="center">
208+1</td>
209+<td align="right">
210+1</td>
211+</tr>
212+</tbody></table>
213+
214+<p>Multiline table without column headers:</p>
215+
216+<table><col width="15%" /><col width="13%" /><col width="16%" /><col width="33%" /><tbody><tr class="odd"><td align="center">
217+First</td>
218+<td align="left">
219+row</td>
220+<td align="right">
221+12.0</td>
222+<td align="left">
223+Example of a row that spans multiple lines.</td>
224+</tr>
225+<tr class="even"><td align="center">
226+Second</td>
227+<td align="left">
228+row</td>
229+<td align="right">
230+5.0</td>
231+<td align="left">
232+Here's another one. Note the blank line between rows.</td>
233+</tr>
234+</tbody></table>
tests/writer.html+874−1094
@@ -10,624 +10,600 @@
1010</head>
1111<body>
1212<h1 class="title">Pandoc Test Suite</h1>
13−<p
14−>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p
15−><hr
16− /><h1 id="headers"
17−>Headers</h1
18−><h2 id="level-2-with-an-embedded-link"
19−>Level 2 with an <a href="/url"
20− >embedded link</a
21− ></h2
22−><h3 id="level-3-with-emphasis"
23−>Level 3 with <em
24− >emphasis</em
25− ></h3
26−><h4 id="level-4"
27−>Level 4</h4
28−><h5 id="level-5"
29−>Level 5</h5
30−><h1 id="level-1"
31−>Level 1</h1
32−><h2 id="level-2-with-emphasis"
33−>Level 2 with <em
34− >emphasis</em
35− ></h2
36−><h3 id="level-3"
37−>Level 3</h3
38−><p
39−>with no blank line</p
40−><h2 id="level-2"
41−>Level 2</h2
42−><p
43−>with no blank line</p
44−><hr
45− /><h1 id="paragraphs"
46−>Paragraphs</h1
47−><p
48−>Here’s a regular paragraph.</p
49−><p
50−>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</p
51−><p
52−>Here’s one with a bullet. * criminey.</p
53−><p
54−>There should be a hard line break<br
55− />here.</p
56−><hr
57− /><h1 id="block-quotes"
58−>Block Quotes</h1
59−><p
60−>E-mail style:</p
61−><blockquote
62−><p
63− >This is a block quote. It is pretty short.</p
64− ></blockquote
65−><blockquote
66−><p
67− >Code in a block quote:</p
68− ><pre
69− ><code
70− >sub status {
13+<p>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p>
14+
15+<hr />
16+
17+<h1 id="headers">Headers</h1>
18+
19+<h2 id="level-2-with-an-embedded-link">Level 2 with an <a href="/url">embedded link</a></h2>
20+
21+<h3 id="level-3-with-emphasis">Level 3 with <em>emphasis</em></h3>
22+
23+<h4 id="level-4">Level 4</h4>
24+
25+<h5 id="level-5">Level 5</h5>
26+
27+<h1 id="level-1">Level 1</h1>
28+
29+<h2 id="level-2-with-emphasis">Level 2 with <em>emphasis</em></h2>
30+
31+<h3 id="level-3">Level 3</h3>
32+
33+<p>with no blank line</p>
34+
35+<h2 id="level-2">Level 2</h2>
36+
37+<p>with no blank line</p>
38+
39+<hr />
40+
41+<h1 id="paragraphs">Paragraphs</h1>
42+
43+<p>Here’s a regular paragraph.</p>
44+
45+<p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</p>
46+
47+<p>Here’s one with a bullet. * criminey.</p>
48+
49+<p>There should be a hard line break<br />here.</p>
50+
51+<hr />
52+
53+<h1 id="block-quotes">Block Quotes</h1>
54+
55+<p>E-mail style:</p>
56+
57+<blockquote>
58+<p>This is a block quote. It is pretty short.</p></blockquote>
59+
60+<blockquote>
61+<p>Code in a block quote:</p>
62+
63+<pre><code>sub status {
7164 print &quot;working&quot;;
7265}
73−</code
74− ></pre
75− ><p
76− >A list:</p
77− ><ol style="list-style-type: decimal"
78− ><li
79− >item one</li
80− ><li
81− >item two</li
82− ></ol
83− ><p
84− >Nested block quotes:</p
85− ><blockquote
86− ><p
87− >nested</p
88− ></blockquote
89− ><blockquote
90− ><p
91− >nested</p
92− ></blockquote
93− ></blockquote
94−><p
95−>This should not be a block quote: 2 &gt; 1.</p
96−><p
97−>And a following paragraph.</p
98−><hr
99− /><h1 id="code-blocks"
100−>Code Blocks</h1
101−><p
102−>Code:</p
103−><pre
104−><code
105− >---- (should be four hyphens)
66+</code></pre>
67+
68+<p>A list:</p>
69+
70+<ol style="list-style-type: decimal">
71+<li>
72+item one</li>
73+<li>
74+item two</li>
75+</ol>
76+
77+<p>Nested block quotes:</p>
78+
79+<blockquote>
80+<p>nested</p></blockquote>
81+
82+<blockquote>
83+<p>nested</p></blockquote></blockquote>
84+
85+<p>This should not be a block quote: 2 &gt; 1.</p>
86+
87+<p>And a following paragraph.</p>
88+
89+<hr />
90+
91+<h1 id="code-blocks">Code Blocks</h1>
92+
93+<p>Code:</p>
94+
95+<pre><code>---- (should be four hyphens)
10696
10797sub status {
10898 print &quot;working&quot;;
10999}
110100
111101this code block is indented by one tab
112−</code
113− ></pre
114−><p
115−>And:</p
116−><pre
117−><code
118− > this code block is indented by two tabs
102+</code></pre>
103+
104+<p>And:</p>
105+
106+<pre><code> this code block is indented by two tabs
119107
120108These should not be escaped: \$ \\ \&gt; \[ \{
121−</code
122− ></pre
123−><hr
124− /><h1 id="lists"
125−>Lists</h1
126−><h2 id="unordered"
127−>Unordered</h2
128−><p
129−>Asterisks tight:</p
130−><ul
131−><li
132− >asterisk 1</li
133− ><li
134− >asterisk 2</li
135− ><li
136− >asterisk 3</li
137− ></ul
138−><p
139−>Asterisks loose:</p
140−><ul
141−><li
142− ><p
143− >asterisk 1</p
144− ></li
145− ><li
146− ><p
147− >asterisk 2</p
148− ></li
149− ><li
150− ><p
151− >asterisk 3</p
152− ></li
153− ></ul
154−><p
155−>Pluses tight:</p
156−><ul
157−><li
158− >Plus 1</li
159− ><li
160− >Plus 2</li
161− ><li
162− >Plus 3</li
163− ></ul
164−><p
165−>Pluses loose:</p
166−><ul
167−><li
168− ><p
169− >Plus 1</p
170− ></li
171− ><li
172− ><p
173− >Plus 2</p
174− ></li
175− ><li
176− ><p
177− >Plus 3</p
178− ></li
179− ></ul
180−><p
181−>Minuses tight:</p
182−><ul
183−><li
184− >Minus 1</li
185− ><li
186− >Minus 2</li
187− ><li
188− >Minus 3</li
189− ></ul
190−><p
191−>Minuses loose:</p
192−><ul
193−><li
194− ><p
195− >Minus 1</p
196− ></li
197− ><li
198− ><p
199− >Minus 2</p
200− ></li
201− ><li
202− ><p
203− >Minus 3</p
204− ></li
205− ></ul
206−><h2 id="ordered"
207−>Ordered</h2
208−><p
209−>Tight:</p
210−><ol style="list-style-type: decimal"
211−><li
212− >First</li
213− ><li
214− >Second</li
215− ><li
216− >Third</li
217− ></ol
218−><p
219−>and:</p
220−><ol style="list-style-type: decimal"
221−><li
222− >One</li
223− ><li
224− >Two</li
225− ><li
226− >Three</li
227− ></ol
228−><p
229−>Loose using tabs:</p
230−><ol style="list-style-type: decimal"
231−><li
232− ><p
233− >First</p
234− ></li
235− ><li
236− ><p
237− >Second</p
238− ></li
239− ><li
240− ><p
241− >Third</p
242− ></li
243− ></ol
244−><p
245−>and using spaces:</p
246−><ol style="list-style-type: decimal"
247−><li
248− ><p
249− >One</p
250− ></li
251− ><li
252− ><p
253− >Two</p
254− ></li
255− ><li
256− ><p
257− >Three</p
258− ></li
259− ></ol
260−><p
261−>Multiple paragraphs:</p
262−><ol style="list-style-type: decimal"
263−><li
264− ><p
265− >Item 1, graf one.</p
266− ><p
267− >Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p
268− ></li
269− ><li
270− ><p
271− >Item 2.</p
272− ></li
273− ><li
274− ><p
275− >Item 3.</p
276− ></li
277− ></ol
278−><h2 id="nested"
279−>Nested</h2
280−><ul
281−><li
282− >Tab<ul
283− ><li
284− >Tab<ul
285− ><li
286− >Tab</li
287− ></ul
288− ></li
289− ></ul
290− ></li
291− ></ul
292−><p
293−>Here’s another:</p
294−><ol style="list-style-type: decimal"
295−><li
296− >First</li
297− ><li
298− >Second:<ul
299− ><li
300− >Fee</li
301− ><li
302− >Fie</li
303− ><li
304− >Foe</li
305− ></ul
306− ></li
307− ><li
308− >Third</li
309− ></ol
310−><p
311−>Same thing but with paragraphs:</p
312−><ol style="list-style-type: decimal"
313−><li
314− ><p
315− >First</p
316− ></li
317− ><li
318− ><p
319− >Second:</p
320− ><ul
321− ><li
322− >Fee</li
323− ><li
324− >Fie</li
325− ><li
326− >Foe</li
327− ></ul
328− ></li
329− ><li
330− ><p
331− >Third</p
332− ></li
333− ></ol
334−><h2 id="tabs-and-spaces"
335−>Tabs and spaces</h2
336−><ul
337−><li
338− ><p
339− >this is a list item indented with tabs</p
340− ></li
341− ><li
342− ><p
343− >this is a list item indented with spaces</p
344− ><ul
345− ><li
346− ><p
347− >this is an example list item indented with tabs</p
348− ></li
349− ><li
350− ><p
351− >this is an example list item indented with spaces</p
352− ></li
353− ></ul
354− ></li
355− ></ul
356−><h2 id="fancy-list-markers"
357−>Fancy list markers</h2
358−><ol start="2" style="list-style-type: decimal"
359−><li
360− >begins with 2</li
361− ><li
362− ><p
363− >and now 3</p
364− ><p
365− >with a continuation</p
366− ><ol start="4" style="list-style-type: lower-roman"
367− ><li
368− >sublist with roman numerals, starting with 4</li
369− ><li
370− >more items<ol style="list-style-type: upper-alpha"
371− ><li
372− >a subsublist</li
373− ><li
374− >a subsublist</li
375− ></ol
376− ></li
377− ></ol
378− ></li
379− ></ol
380−><p
381−>Nesting:</p
382−><ol style="list-style-type: upper-alpha"
383−><li
384− >Upper Alpha<ol style="list-style-type: upper-roman"
385− ><li
386− >Upper Roman.<ol start="6" style="list-style-type: decimal"
387− ><li
388− >Decimal start with 6<ol start="3" style="list-style-type: lower-alpha"
389− ><li
390− >Lower alpha with paren</li
391− ></ol
392− ></li
393− ></ol
394− ></li
395− ></ol
396− ></li
397− ></ol
398−><p
399−>Autonumbering:</p
400−><ol
401−><li
402− >Autonumber.</li
403− ><li
404− >More.<ol
405− ><li
406− >Nested.</li
407− ></ol
408− ></li
409− ></ol
410−><p
411−>Should not be a list item:</p
412−><p
413−>M.A. 2007</p
414−><p
415−>B. Williams</p
416−><hr
417− /><h1 id="definition-lists"
418−>Definition Lists</h1
419−><p
420−>Tight using spaces:</p
421−><dl
422−><dt
423− >apple</dt
424− ><dd
425− >red fruit</dd
426− ><dt
427− >orange</dt
428− ><dd
429− >orange fruit</dd
430− ><dt
431− >banana</dt
432− ><dd
433− >yellow fruit</dd
434− ></dl
435−><p
436−>Tight using tabs:</p
437−><dl
438−><dt
439− >apple</dt
440− ><dd
441− >red fruit</dd
442− ><dt
443− >orange</dt
444− ><dd
445− >orange fruit</dd
446− ><dt
447− >banana</dt
448− ><dd
449− >yellow fruit</dd
450− ></dl
451−><p
452−>Loose:</p
453−><dl
454−><dt
455− >apple</dt
456− ><dd
457− ><p
458− >red fruit</p
459− ></dd
460− ><dt
461− >orange</dt
462− ><dd
463− ><p
464− >orange fruit</p
465− ></dd
466− ><dt
467− >banana</dt
468− ><dd
469− ><p
470− >yellow fruit</p
471− ></dd
472− ></dl
473−><p
474−>Multiple blocks with italics:</p
475−><dl
476−><dt
477− ><em
478− >apple</em
479− ></dt
480− ><dd
481− ><p
482− >red fruit</p
483− ><p
484− >contains seeds, crisp, pleasant to taste</p
485− ></dd
486− ><dt
487− ><em
488− >orange</em
489− ></dt
490− ><dd
491− ><p
492− >orange fruit</p
493− ><pre
494− ><code
495− >{ orange code block }
496−</code
497− ></pre
498− ><blockquote
499− ><p
500− >orange block quote</p
501− ></blockquote
502− ></dd
503− ></dl
504−><p
505−>Multiple definitions, tight:</p
506−><dl
507−><dt
508− >apple</dt
509− ><dd
510− >red fruit</dd
511− ><dd
512− >computer</dd
513− ><dt
514− >orange</dt
515− ><dd
516− >orange fruit</dd
517− ><dd
518− >bank</dd
519− ></dl
520−><p
521−>Multiple definitions, loose:</p
522−><dl
523−><dt
524− >apple</dt
525− ><dd
526− ><p
527− >red fruit</p
528− ></dd
529− ><dd
530− ><p
531− >computer</p
532− ></dd
533− ><dt
534− >orange</dt
535− ><dd
536− ><p
537− >orange fruit</p
538− ></dd
539− ><dd
540− ><p
541− >bank</p
542− ></dd
543− ></dl
544−><p
545−>Blank line after term, indented marker, alternate markers:</p
546−><dl
547−><dt
548− >apple</dt
549− ><dd
550− ><p
551− >red fruit</p
552− ></dd
553− ><dd
554− ><p
555− >computer</p
556− ></dd
557− ><dt
558− >orange</dt
559− ><dd
560− ><p
561− >orange fruit</p
562− ><ol style="list-style-type: decimal"
563− ><li
564− >sublist</li
565− ><li
566− >sublist</li
567− ></ol
568− ></dd
569− ></dl
570−><h1 id="html-blocks"
571−>HTML Blocks</h1
572−><p
573−>Simple block on one line:</p
574−><div>foo</div>
575−<p
576−>And nested without indentation:</p
577−><div>
109+</code></pre>
110+
111+<hr />
112+
113+<h1 id="lists">Lists</h1>
114+
115+<h2 id="unordered">Unordered</h2>
116+
117+<p>Asterisks tight:</p>
118+
119+<ul>
120+<li>
121+asterisk 1</li>
122+<li>
123+asterisk 2</li>
124+<li>
125+asterisk 3</li>
126+</ul>
127+
128+<p>Asterisks loose:</p>
129+
130+<ul>
131+<li>
132+<p>asterisk 1</p></li>
133+<li>
134+<p>asterisk 2</p></li>
135+<li>
136+<p>asterisk 3</p></li>
137+</ul>
138+
139+<p>Pluses tight:</p>
140+
141+<ul>
142+<li>
143+Plus 1</li>
144+<li>
145+Plus 2</li>
146+<li>
147+Plus 3</li>
148+</ul>
149+
150+<p>Pluses loose:</p>
151+
152+<ul>
153+<li>
154+<p>Plus 1</p></li>
155+<li>
156+<p>Plus 2</p></li>
157+<li>
158+<p>Plus 3</p></li>
159+</ul>
160+
161+<p>Minuses tight:</p>
162+
163+<ul>
164+<li>
165+Minus 1</li>
166+<li>
167+Minus 2</li>
168+<li>
169+Minus 3</li>
170+</ul>
171+
172+<p>Minuses loose:</p>
173+
174+<ul>
175+<li>
176+<p>Minus 1</p></li>
177+<li>
178+<p>Minus 2</p></li>
179+<li>
180+<p>Minus 3</p></li>
181+</ul>
182+
183+<h2 id="ordered">Ordered</h2>
184+
185+<p>Tight:</p>
186+
187+<ol style="list-style-type: decimal">
188+<li>
189+First</li>
190+<li>
191+Second</li>
192+<li>
193+Third</li>
194+</ol>
195+
196+<p>and:</p>
197+
198+<ol style="list-style-type: decimal">
199+<li>
200+One</li>
201+<li>
202+Two</li>
203+<li>
204+Three</li>
205+</ol>
206+
207+<p>Loose using tabs:</p>
208+
209+<ol style="list-style-type: decimal">
210+<li>
211+<p>First</p></li>
212+<li>
213+<p>Second</p></li>
214+<li>
215+<p>Third</p></li>
216+</ol>
217+
218+<p>and using spaces:</p>
219+
220+<ol style="list-style-type: decimal">
221+<li>
222+<p>One</p></li>
223+<li>
224+<p>Two</p></li>
225+<li>
226+<p>Three</p></li>
227+</ol>
228+
229+<p>Multiple paragraphs:</p>
230+
231+<ol style="list-style-type: decimal">
232+<li>
233+<p>Item 1, graf one.</p>
234+
235+<p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p></li>
236+<li>
237+<p>Item 2.</p></li>
238+<li>
239+<p>Item 3.</p></li>
240+</ol>
241+
242+<h2 id="nested">Nested</h2>
243+
244+<ul>
245+<li>
246+Tab
247+
248+<ul>
249+<li>
250+Tab
251+
252+<ul>
253+<li>
254+Tab</li>
255+</ul></li>
256+</ul></li>
257+</ul>
258+
259+<p>Here’s another:</p>
260+
261+<ol style="list-style-type: decimal">
262+<li>
263+First</li>
264+<li>
265+Second:
266+
267+<ul>
268+<li>
269+Fee</li>
270+<li>
271+Fie</li>
272+<li>
273+Foe</li>
274+</ul></li>
275+<li>
276+Third</li>
277+</ol>
278+
279+<p>Same thing but with paragraphs:</p>
280+
281+<ol style="list-style-type: decimal">
282+<li>
283+<p>First</p></li>
284+<li>
285+<p>Second:</p>
286+
287+<ul>
288+<li>
289+Fee</li>
290+<li>
291+Fie</li>
292+<li>
293+Foe</li>
294+</ul></li>
295+<li>
296+<p>Third</p></li>
297+</ol>
298+
299+<h2 id="tabs-and-spaces">Tabs and spaces</h2>
300+
301+<ul>
302+<li>
303+<p>this is a list item indented with tabs</p></li>
304+<li>
305+<p>this is a list item indented with spaces</p>
306+
307+<ul>
308+<li>
309+<p>this is an example list item indented with tabs</p></li>
310+<li>
311+<p>this is an example list item indented with spaces</p></li>
312+</ul></li>
313+</ul>
314+
315+<h2 id="fancy-list-markers">Fancy list markers</h2>
316+
317+<ol start="2" style="list-style-type: decimal">
318+<li>
319+begins with 2</li>
320+<li>
321+<p>and now 3</p>
322+
323+<p>with a continuation</p>
324+
325+<ol start="4" style="list-style-type: lower-roman">
326+<li>
327+sublist with roman numerals, starting with 4</li>
328+<li>
329+more items
330+
331+<ol style="list-style-type: upper-alpha">
332+<li>
333+a subsublist</li>
334+<li>
335+a subsublist</li>
336+</ol></li>
337+</ol></li>
338+</ol>
339+
340+<p>Nesting:</p>
341+
342+<ol style="list-style-type: upper-alpha">
343+<li>
344+Upper Alpha
345+
346+<ol style="list-style-type: upper-roman">
347+<li>
348+Upper Roman.
349+
350+<ol start="6" style="list-style-type: decimal">
351+<li>
352+Decimal start with 6
353+
354+<ol start="3" style="list-style-type: lower-alpha">
355+<li>
356+Lower alpha with paren</li>
357+</ol></li>
358+</ol></li>
359+</ol></li>
360+</ol>
361+
362+<p>Autonumbering:</p>
363+
364+<ol>
365+<li>
366+Autonumber.</li>
367+<li>
368+More.
369+
370+<ol>
371+<li>
372+Nested.</li>
373+</ol></li>
374+</ol>
375+
376+<p>Should not be a list item:</p>
377+
378+<p>M.A. 2007</p>
379+
380+<p>B. Williams</p>
381+
382+<hr />
383+
384+<h1 id="definition-lists">Definition Lists</h1>
385+
386+<p>Tight using spaces:</p>
387+
388+<dl>
389+<dt>apple</dt>
390+<dd>
391+red fruit
392+</dd>
393+<dt>orange</dt>
394+<dd>
395+orange fruit
396+</dd>
397+<dt>banana</dt>
398+<dd>
399+yellow fruit
400+</dd>
401+</dl>
402+
403+<p>Tight using tabs:</p>
404+
405+<dl>
406+<dt>apple</dt>
407+<dd>
408+red fruit
409+</dd>
410+<dt>orange</dt>
411+<dd>
412+orange fruit
413+</dd>
414+<dt>banana</dt>
415+<dd>
416+yellow fruit
417+</dd>
418+</dl>
419+
420+<p>Loose:</p>
421+
422+<dl>
423+<dt>apple</dt>
424+<dd>
425+<p>red fruit</p>
426+</dd>
427+<dt>orange</dt>
428+<dd>
429+<p>orange fruit</p>
430+</dd>
431+<dt>banana</dt>
432+<dd>
433+<p>yellow fruit</p>
434+</dd>
435+</dl>
436+
437+<p>Multiple blocks with italics:</p>
438+
439+<dl>
440+<dt><em>apple</em></dt>
441+<dd>
442+<p>red fruit</p>
443+
444+<p>contains seeds, crisp, pleasant to taste</p>
445+</dd>
446+<dt><em>orange</em></dt>
447+<dd>
448+<p>orange fruit</p>
449+
450+<pre><code>{ orange code block }
451+</code></pre>
452+
453+<blockquote>
454+<p>orange block quote</p></blockquote>
455+</dd>
456+</dl>
457+
458+<p>Multiple definitions, tight:</p>
459+
460+<dl>
461+<dt>apple</dt>
462+<dd>
463+red fruit
464+</dd><dd>
465+computer
466+</dd>
467+<dt>orange</dt>
468+<dd>
469+orange fruit
470+</dd><dd>
471+bank
472+</dd>
473+</dl>
474+
475+<p>Multiple definitions, loose:</p>
476+
477+<dl>
478+<dt>apple</dt>
479+<dd>
480+<p>red fruit</p>
481+</dd><dd>
482+<p>computer</p>
483+</dd>
484+<dt>orange</dt>
485+<dd>
486+<p>orange fruit</p>
487+</dd><dd>
488+<p>bank</p>
489+</dd>
490+</dl>
491+
492+<p>Blank line after term, indented marker, alternate markers:</p>
493+
494+<dl>
495+<dt>apple</dt>
496+<dd>
497+<p>red fruit</p>
498+</dd><dd>
499+<p>computer</p>
500+</dd>
501+<dt>orange</dt>
502+<dd>
503+<p>orange fruit</p>
504+
505+<ol style="list-style-type: decimal">
506+<li>
507+sublist</li>
508+<li>
509+sublist</li>
510+</ol>
511+</dd>
512+</dl>
513+
514+<h1 id="html-blocks">HTML Blocks</h1>
515+
516+<p>Simple block on one line:</p>
517+
578518<div>
579−<div>foo</div>
519+
520+foo
521+
522+</div>
523+
524+
525+<p>And nested without indentation:</p>
526+
527+<div>
528+<div>
529+<div>
530+
531+foo
532+
580533</div>
581−<div>bar</div>
582534</div>
583−<p
584−>Interpreted markdown in a table:</p
585−><table>
535+<div>
536+
537+bar
538+
539+</div>
540+</div>
541+
542+
543+<p>Interpreted markdown in a table:</p>
544+
545+<table>
586546<tr>
587−<td>This is <em
588−>emphasized</em
589−></td>
590−<td>And this is <strong
591−>strong</strong
592−></td>
547+<td>
548+
549+This is <em>emphasized</em>
550+
551+</td>
552+<td>
553+
554+And this is <strong>strong</strong>
555+
556+</td>
593557</tr>
594558</table>
595559
596560<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
597−<p
598−>Here’s a simple block:</p
599−><div>
600− foo</div>
601−<p
602−>This should be a code block, though:</p
603−><pre
604−><code
605− >&lt;div&gt;
561+
562+
563+<p>Here’s a simple block:</p>
564+
565+<div>
566+
567+
568+foo
569+
570+</div>
571+
572+
573+<p>This should be a code block, though:</p>
574+
575+<pre><code>&lt;div&gt;
606576 foo
607577&lt;/div&gt;
608−</code
609− ></pre
610−><p
611−>As should this:</p
612−><pre
613−><code
614− >&lt;div&gt;foo&lt;/div&gt;
615−</code
616− ></pre
617−><p
618−>Now, nested:</p
619−><div>
578+</code></pre>
579+
580+<p>As should this:</p>
581+
582+<pre><code>&lt;div&gt;foo&lt;/div&gt;
583+</code></pre>
584+
585+<p>Now, nested:</p>
586+
587+<div>
620588 <div>
621589 <div>
622− foo</div>
590+
591+
592+foo
593+
594+</div>
623595 </div>
624596</div>
625−<p
626−>This should just be an HTML comment:</p
627−><!-- Comment -->
628−<p
629−>Multiline:</p
630−><!--
597+
598+
599+<p>This should just be an HTML comment:</p>
600+
601+<!-- Comment -->
602+
603+
604+<p>Multiline:</p>
605+
606+<!--
631607Blah
632608Blah
633609-->
@@ -635,26 +611,26 @@ Blah
635611<!--
636612 This is another comment.
637613-->
638−<p
639−>Code block:</p
640−><pre
641−><code
642− >&lt;!-- Comment --&gt;
643−</code
644− ></pre
645−><p
646−>Just plain comment, with trailing spaces on the line:</p
647−><!-- foo -->
648−<p
649−>Code:</p
650−><pre
651−><code
652− >&lt;hr /&gt;
653−</code
654− ></pre
655−><p
656−>Hr’s:</p
657−><hr>
614+
615+
616+<p>Code block:</p>
617+
618+<pre><code>&lt;!-- Comment --&gt;
619+</code></pre>
620+
621+<p>Just plain comment, with trailing spaces on the line:</p>
622+
623+<!-- foo -->
624+
625+
626+<p>Code:</p>
627+
628+<pre><code>&lt;hr /&gt;
629+</code></pre>
630+
631+<p>Hr’s:</p>
632+
633+<hr>
658634
659635<hr />
660636
@@ -671,493 +647,297 @@ Blah
671647<hr class="foo" id="bar" />
672648
673649<hr class="foo" id="bar">
674−<hr
675− /><h1 id="inline-markup"
676−>Inline Markup</h1
677−><p
678−>This is <em
679− >emphasized</em
680− >, and so <em
681− >is this</em
682− >.</p
683−><p
684−>This is <strong
685− >strong</strong
686− >, and so <strong
687− >is this</strong
688− >.</p
689−><p
690−>An <em
691− ><a href="/url"
692− >emphasized link</a
693− ></em
694− >.</p
695−><p
696−><strong
697− ><em
698− >This is strong and em.</em
699− ></strong
700− ></p
701−><p
702−>So is <strong
703− ><em
704− >this</em
705− ></strong
706− > word.</p
707−><p
708−><strong
709− ><em
710− >This is strong and em.</em
711− ></strong
712− ></p
713−><p
714−>So is <strong
715− ><em
716− >this</em
717− ></strong
718− > word.</p
719−><p
720−>This is code: <code
721− >&gt;</code
722− >, <code
723− >$</code
724− >, <code
725− >\</code
726− >, <code
727− >\$</code
728− >, <code
729− >&lt;html&gt;</code
730− >.</p
731−><p
732−><span style="text-decoration: line-through;"
733− >This is <em
734− >strikeout</em
735− >.</span
736− ></p
737−><p
738−>Superscripts: a<sup
739− >bc</sup
740− >d a<sup
741− ><em
742− >hello</em
743− ></sup
744− > a<sup
745− >hello there</sup
746− >.</p
747−><p
748−>Subscripts: H<sub
749− >2</sub
750− >O, H<sub
751− >23</sub
752− >O, H<sub
753− >many of them</sub
754− >O.</p
755−><p
756−>These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</p
757−><hr
758− /><h1 id="smart-quotes-ellipses-dashes"
759−>Smart quotes, ellipses, dashes</h1
760−><p
761−>“Hello,” said the spider. “‘Shelob’ is my name.”</p
762−><p
763−>‘A’, ‘B’, and ‘C’ are letters.</p
764−><p
765−>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p
766−><p
767−>‘He said, “I want to go.”’ Were you alive in the 70’s?</p
768−><p
769−>Here is some quoted ‘<code
770− >code</code
771− >’ and a “<a href="http://example.com/?foo=1&amp;bar=2"
772− >quoted link</a
773− >”.</p
774−><p
775−>Some dashes: one—two — three—four — five.</p
776−><p
777−>Dashes between numbers: 5–7, 255–66, 1987–1999.</p
778−><p
779−>Ellipses…and…and….</p
780−><hr
781− /><h1 id="latex"
782−>LaTeX</h1
783−><ul
784−><li
785− ></li
786− ><li
787− ><span class="math"
788− >2 + 2 = 4</span
789− ></li
790− ><li
791− ><span class="math"
792− ><em
793− >x</em
794− > ∈ <em
795− >y</em
796− ></span
797− ></li
798− ><li
799− ><span class="math"
800− >α ∧ ω</span
801− ></li
802− ><li
803− ><span class="math"
804− >223</span
805− ></li
806− ><li
807− ><span class="math"
808− ><em
809− >p</em
810− ></span
811− >-Tree</li
812− ><li
813− >Here’s some display math: <br
814− /><span class="math"
815− >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
816− ><br
817− /></li
818− ><li
819− >Here’s one that has a line break in it: <span class="math"
820− >α + ω × <em
821− >x</em
822− ><sup
823− >2</sup
824− ></span
825− >.</li
826− ></ul
827−><p
828−>These shouldn’t be math:</p
829−><ul
830−><li
831− >To get the famous equation, write <code
832− >$e = mc^2$</code
833− >.</li
834− ><li
835− >$22,000 is a <em
836− >lot</em
837− > of money. So is $34,000. (It worked if “lot” is emphasized.)</li
838− ><li
839− >Shoes ($20) and socks ($5).</li
840− ><li
841− >Escaped <code
842− >$</code
843− >: $73 <em
844− >this should be emphasized</em
845− > 23$.</li
846− ></ul
847−><p
848−>Here’s a LaTeX table:</p
849−><hr
850− /><h1 id="special-characters"
851−>Special Characters</h1
852−><p
853−>Here is some unicode:</p
854−><ul
855−><li
856− >I hat: Î</li
857− ><li
858− >o umlaut: ö</li
859− ><li
860− >section: §</li
861− ><li
862− >set membership: ∈</li
863− ><li
864− >copyright: ©</li
865− ></ul
866−><p
867−>AT&amp;T has an ampersand in their name.</p
868−><p
869−>AT&amp;T is another way to write it.</p
870−><p
871−>This &amp; that.</p
872−><p
873−>4 &lt; 5.</p
874−><p
875−>6 &gt; 5.</p
876−><p
877−>Backslash: \</p
878−><p
879−>Backtick: `</p
880−><p
881−>Asterisk: *</p
882−><p
883−>Underscore: _</p
884−><p
885−>Left brace: {</p
886−><p
887−>Right brace: }</p
888−><p
889−>Left bracket: [</p
890−><p
891−>Right bracket: ]</p
892−><p
893−>Left paren: (</p
894−><p
895−>Right paren: )</p
896−><p
897−>Greater-than: &gt;</p
898−><p
899−>Hash: #</p
900−><p
901−>Period: .</p
902−><p
903−>Bang: !</p
904−><p
905−>Plus: +</p
906−><p
907−>Minus: -</p
908−><hr
909− /><h1 id="links"
910−>Links</h1
911−><h2 id="explicit"
912−>Explicit</h2
913−><p
914−>Just a <a href="/url/"
915− >URL</a
916− >.</p
917−><p
918−><a href="/url/" title="title"
919− >URL and title</a
920− >.</p
921−><p
922−><a href="/url/" title="title preceded by two spaces"
923− >URL and title</a
924− >.</p
925−><p
926−><a href="/url/" title="title preceded by a tab"
927− >URL and title</a
928− >.</p
929−><p
930−><a href="/url/" title="title with &quot;quotes&quot; in it"
931− >URL and title</a
932− ></p
933−><p
934−><a href="/url/" title="title with single quotes"
935− >URL and title</a
936− ></p
937−><p
938−><a href="/url/with_underscore"
939− >with_underscore</a
940− ></p
941−><p
942−><script type="text/javascript"
943− >
650+
651+
652+<hr />
653+
654+<h1 id="inline-markup">Inline Markup</h1>
655+
656+<p>This is <em>emphasized</em>, and so <em>is this</em>.</p>
657+
658+<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
659+
660+<p>An <em><a href="/url">emphasized link</a></em>.</p>
661+
662+<p><strong><em>This is strong and em.</em></strong></p>
663+
664+<p>So is <strong><em>this</em></strong> word.</p>
665+
666+<p><strong><em>This is strong and em.</em></strong></p>
667+
668+<p>So is <strong><em>this</em></strong> word.</p>
669+
670+<p>This is code: <code>&gt;</code>, <code>$</code>, <code>\</code>, <code>\$</code>, <code>&lt;html&gt;</code>.</p>
671+
672+<p><span style="text-decoration: line-through;">This is <em>strikeout</em>.</span></p>
673+
674+<p>Superscripts: a<sup>bc</sup>d a<sup><em>hello</em></sup> a<sup>hello there</sup>.</p>
675+
676+<p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.</p>
677+
678+<p>These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</p>
679+
680+<hr />
681+
682+<h1 id="smart-quotes-ellipses-dashes">Smart quotes, ellipses, dashes</h1>
683+
684+<p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
685+
686+<p>‘A’, ‘B’, and ‘C’ are letters.</p>
687+
688+<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
689+
690+<p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
691+
692+<p>Here is some quoted ‘<code>code</code>’ and a “<a href="http://example.com/?foo=1&amp;bar=2">quoted link</a>”.</p>
693+
694+<p>Some dashes: one—two — three—four — five.</p>
695+
696+<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
697+
698+<p>Ellipses…and…and….</p>
699+
700+<hr />
701+
702+<h1 id="latex">LaTeX</h1>
703+
704+<ul>
705+<li>
706+</li>
707+<li>
708+<span class="math">2 + 2 = 4</span></li>
709+<li>
710+<span class="math"><em>x</em> ∈ <em>y</em></span></li>
711+<li>
712+<span class="math">α ∧ ω</span></li>
713+<li>
714+<span class="math">223</span></li>
715+<li>
716+<span class="math"><em>p</em></span>-Tree</li>
717+<li>
718+Here’s some display math: <br /><span class="math">$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span><br /></li>
719+<li>
720+Here’s one that has a line break in it: <span class="math">α + ω × <em>x</em><sup>2</sup></span>.</li>
721+</ul>
722+
723+<p>These shouldn’t be math:</p>
724+
725+<ul>
726+<li>
727+To get the famous equation, write <code>$e = mc^2$</code>.</li>
728+<li>
729+$22,000 is a <em>lot</em> of money. So is $34,000. (It worked if “lot” is emphasized.)</li>
730+<li>
731+Shoes ($20) and socks ($5).</li>
732+<li>
733+Escaped <code>$</code>: $73 <em>this should be emphasized</em> 23$.</li>
734+</ul>
735+
736+<p>Here’s a LaTeX table:</p>
737+
738+
739+
740+<hr />
741+
742+<h1 id="special-characters">Special Characters</h1>
743+
744+<p>Here is some unicode:</p>
745+
746+<ul>
747+<li>
748+I hat: Î</li>
749+<li>
750+o umlaut: ö</li>
751+<li>
752+section: §</li>
753+<li>
754+set membership: ∈</li>
755+<li>
756+copyright: ©</li>
757+</ul>
758+
759+<p>AT&amp;T has an ampersand in their name.</p>
760+
761+<p>AT&amp;T is another way to write it.</p>
762+
763+<p>This &amp; that.</p>
764+
765+<p>4 &lt; 5.</p>
766+
767+<p>6 &gt; 5.</p>
768+
769+<p>Backslash: \</p>
770+
771+<p>Backtick: `</p>
772+
773+<p>Asterisk: *</p>
774+
775+<p>Underscore: _</p>
776+
777+<p>Left brace: {</p>
778+
779+<p>Right brace: }</p>
780+
781+<p>Left bracket: [</p>
782+
783+<p>Right bracket: ]</p>
784+
785+<p>Left paren: (</p>
786+
787+<p>Right paren: )</p>
788+
789+<p>Greater-than: &gt;</p>
790+
791+<p>Hash: #</p>
792+
793+<p>Period: .</p>
794+
795+<p>Bang: !</p>
796+
797+<p>Plus: +</p>
798+
799+<p>Minus: -</p>
800+
801+<hr />
802+
803+<h1 id="links">Links</h1>
804+
805+<h2 id="explicit">Explicit</h2>
806+
807+<p>Just a <a href="/url/">URL</a>.</p>
808+
809+<p><a href="/url/" title="title">URL and title</a>.</p>
810+
811+<p><a href="/url/" title="title preceded by two spaces">URL and title</a>.</p>
812+
813+<p><a href="/url/" title="title preceded by a tab">URL and title</a>.</p>
814+
815+<p><a href="/url/" title="title with &quot;quotes&quot; in it">URL and title</a></p>
816+
817+<p><a href="/url/" title="title with single quotes">URL and title</a></p>
818+
819+<p><a href="/url/with_underscore">with_underscore</a></p>
820+
821+<p><script type="text/javascript">
944822<!--
945823h='&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#46;&#110;&#x65;&#116;';a='&#64;';n='&#110;&#x6f;&#98;&#x6f;&#100;&#x79;';e=n+a+h;
946824document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>');
947825// -->
948−</script
949− ><noscript
950− >&#x45;&#x6d;&#x61;&#x69;&#108;&#32;&#108;&#x69;&#110;&#x6b;&#32;&#40;&#110;&#x6f;&#98;&#x6f;&#100;&#x79;&#32;&#x61;&#116;&#32;&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#32;&#100;&#x6f;&#116;&#32;&#110;&#x65;&#116;&#x29;</noscript
951− ></p
952−><p
953−><a href=""
954− >Empty</a
955− >.</p
956−><h2 id="reference"
957−>Reference</h2
958−><p
959−>Foo <a href="/url/"
960− >bar</a
961− >.</p
962−><p
963−>Foo <a href="/url/"
964− >bar</a
965− >.</p
966−><p
967−>Foo <a href="/url/"
968− >bar</a
969− >.</p
970−><p
971−>With <a href="/url/"
972− >embedded [brackets]</a
973− >.</p
974−><p
975−><a href="/url/"
976− >b</a
977− > by itself should be a link.</p
978−><p
979−>Indented <a href="/url"
980− >once</a
981− >.</p
982−><p
983−>Indented <a href="/url"
984− >twice</a
985− >.</p
986−><p
987−>Indented <a href="/url"
988− >thrice</a
989− >.</p
990−><p
991−>This should [not][] be a link.</p
992−><pre
993−><code
994− >[not]: /url
995−</code
996− ></pre
997−><p
998−>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside"
999− >bar</a
1000− >.</p
1001−><p
1002−>Foo <a href="/url/" title="Title with &quot;quote&quot; inside"
1003− >biz</a
1004− >.</p
1005−><h2 id="with-ampersands"
1006−>With ampersands</h2
1007−><p
1008−>Here’s a <a href="http://example.com/?foo=1&amp;bar=2"
1009− >link with an ampersand in the URL</a
1010− >.</p
1011−><p
1012−>Here’s a link with an amersand in the link text: <a href="http://att.com/" title="AT&amp;T"
1013− >AT&amp;T</a
1014− >.</p
1015−><p
1016−>Here’s an <a href="/script?foo=1&amp;bar=2"
1017− >inline link</a
1018− >.</p
1019−><p
1020−>Here’s an <a href="/script?foo=1&amp;bar=2"
1021− >inline link in pointy braces</a
1022− >.</p
1023−><h2 id="autolinks"
1024−>Autolinks</h2
1025−><p
1026−>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2"
1027− ><code class="url"
1028− >http://example.com/?foo=1&amp;bar=2</code
1029− ></a
1030− ></p
1031−><ul
1032−><li
1033− >In a list?</li
1034− ><li
1035− ><a href="http://example.com/"
1036− ><code class="url"
1037− >http://example.com/</code
1038− ></a
1039− ></li
1040− ><li
1041− >It should.</li
1042− ></ul
1043−><p
1044−>An e-mail address: <script type="text/javascript"
1045− >
826+</script><noscript>&#x45;&#x6d;&#x61;&#x69;&#108;&#32;&#108;&#x69;&#110;&#x6b;&#32;&#40;&#110;&#x6f;&#98;&#x6f;&#100;&#x79;&#32;&#x61;&#116;&#32;&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#32;&#100;&#x6f;&#116;&#32;&#110;&#x65;&#116;&#x29;</noscript></p>
827+
828+<p><a href="">Empty</a>.</p>
829+
830+<h2 id="reference">Reference</h2>
831+
832+<p>Foo <a href="/url/">bar</a>.</p>
833+
834+<p>Foo <a href="/url/">bar</a>.</p>
835+
836+<p>Foo <a href="/url/">bar</a>.</p>
837+
838+<p>With <a href="/url/">embedded [brackets]</a>.</p>
839+
840+<p><a href="/url/">b</a> by itself should be a link.</p>
841+
842+<p>Indented <a href="/url">once</a>.</p>
843+
844+<p>Indented <a href="/url">twice</a>.</p>
845+
846+<p>Indented <a href="/url">thrice</a>.</p>
847+
848+<p>This should [not][] be a link.</p>
849+
850+<pre><code>[not]: /url
851+</code></pre>
852+
853+<p>Foo <a href="/url/" title="Title with &quot;quotes&quot; inside">bar</a>.</p>
854+
855+<p>Foo <a href="/url/" title="Title with &quot;quote&quot; inside">biz</a>.</p>
856+
857+<h2 id="with-ampersands">With ampersands</h2>
858+
859+<p>Here’s a <a href="http://example.com/?foo=1&amp;bar=2">link with an ampersand in the URL</a>.</p>
860+
861+<p>Here’s a link with an amersand in the link text: <a href="http://att.com/" title="AT&amp;T">AT&amp;T</a>.</p>
862+
863+<p>Here’s an <a href="/script?foo=1&amp;bar=2">inline link</a>.</p>
864+
865+<p>Here’s an <a href="/script?foo=1&amp;bar=2">inline link in pointy braces</a>.</p>
866+
867+<h2 id="autolinks">Autolinks</h2>
868+
869+<p>With an ampersand: <a href="http://example.com/?foo=1&amp;bar=2"><code class="url">http://example.com/?foo=1&amp;bar=2</code></a></p>
870+
871+<ul>
872+<li>
873+In a list?</li>
874+<li>
875+<a href="http://example.com/"><code class="url">http://example.com/</code></a></li>
876+<li>
877+It should.</li>
878+</ul>
879+
880+<p>An e-mail address: <script type="text/javascript">
1046881<!--
1047882h='&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#46;&#110;&#x65;&#116;';a='&#64;';n='&#110;&#x6f;&#98;&#x6f;&#100;&#x79;';e=n+a+h;
1048883document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'<code>'+e+'</code>'+'<\/'+'a'+'>');
1049884// -->
1050−</script
1051− ><noscript
1052− >&#110;&#x6f;&#98;&#x6f;&#100;&#x79;&#32;&#x61;&#116;&#32;&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#32;&#100;&#x6f;&#116;&#32;&#110;&#x65;&#116;</noscript
1053− ></p
1054−><blockquote
1055−><p
1056− >Blockquoted: <a href="http://example.com/"
1057− ><code class="url"
1058− >http://example.com/</code
1059− ></a
1060− ></p
1061− ></blockquote
1062−><p
1063−>Auto-links should not occur here: <code
1064− >&lt;http://example.com/&gt;</code
1065− ></p
1066−><pre
1067−><code
1068− >or here: &lt;http://example.com/&gt;
1069−</code
1070− ></pre
1071−><hr
1072− /><h1 id="images"
1073−>Images</h1
1074−><p
1075−>From “Voyage dans la Lune” by Georges Melies (1902):</p
1076−><div class="figure"
1077−><img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune"
1078− /><p class="caption"
1079− >lalune</p
1080− ></div
1081−><p
1082−>Here is a movie <img src="movie.jpg" alt="movie"
1083− /> icon.</p
1084−><hr
1085− /><h1 id="footnotes"
1086−>Footnotes</h1
1087−><p
1088−>Here is a footnote reference,<sup
1089− ><a href="#fn1" class="footnoteRef" id="fnref1"
1090− >1</a
1091− ></sup
1092− > and another.<sup
1093− ><a href="#fn2" class="footnoteRef" id="fnref2"
1094− >2</a
1095− ></sup
1096− > This should <em
1097− >not</em
1098− > be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup
1099− ><a href="#fn3" class="footnoteRef" id="fnref3"
1100− >3</a
1101− ></sup
1102− ></p
1103−><blockquote
1104−><p
1105− >Notes can go in quotes.<sup
1106− ><a href="#fn4" class="footnoteRef" id="fnref4"
1107− >4</a
1108− ></sup
1109− ></p
1110− ></blockquote
1111−><ol style="list-style-type: decimal"
1112−><li
1113− >And in list items.<sup
1114− ><a href="#fn5" class="footnoteRef" id="fnref5"
1115− >5</a
1116− ></sup
1117− ></li
1118− ></ol
1119−><p
1120−>This paragraph should not be part of the note, as it is not indented.</p
1121−><div class="footnotes"
1122−><hr
1123− /><ol
1124− ><li id="fn1"
1125− ><p
1126− >Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. <a href="#fnref1" class="footnoteBackLink" title="Jump back to footnote 1">↩</a></p
1127− ></li
1128− ><li id="fn2"
1129− ><p
1130− >Here’s the long note. This one contains multiple blocks.</p
1131− ><p
1132− >Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p
1133− ><pre
1134− ><code
1135− > { &lt;code&gt; }
1136−</code
1137− ></pre
1138− ><p
1139− >If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. <a href="#fnref2" class="footnoteBackLink" title="Jump back to footnote 2">↩</a></p
1140− ></li
1141− ><li id="fn3"
1142− ><p
1143− >This is <em
1144− >easier</em
1145− > to type. Inline notes may contain <a href="http://google.com"
1146− >links</a
1147− > and <code
1148− >]</code
1149− > verbatim characters, as well as [bracketed text]. <a href="#fnref3" class="footnoteBackLink" title="Jump back to footnote 3">↩</a></p
1150− ></li
1151− ><li id="fn4"
1152− ><p
1153− >In quote. <a href="#fnref4" class="footnoteBackLink" title="Jump back to footnote 4">↩</a></p
1154− ></li
1155− ><li id="fn5"
1156− ><p
1157− >In list. <a href="#fnref5" class="footnoteBackLink" title="Jump back to footnote 5">↩</a></p
1158− ></li
1159− ></ol
1160− ></div
1161−>
885+</script><noscript>&#110;&#x6f;&#98;&#x6f;&#100;&#x79;&#32;&#x61;&#116;&#32;&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#32;&#100;&#x6f;&#116;&#32;&#110;&#x65;&#116;</noscript></p>
886+
887+<blockquote>
888+<p>Blockquoted: <a href="http://example.com/"><code class="url">http://example.com/</code></a></p></blockquote>
889+
890+<p>Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code></p>
891+
892+<pre><code>or here: &lt;http://example.com/&gt;
893+</code></pre>
894+
895+<hr />
896+
897+<h1 id="images">Images</h1>
898+
899+<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
900+
901+<div class="figure">
902+<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" /><p class="caption">lalune</p>
903+</div>
904+
905+<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
906+
907+<hr />
908+
909+<h1 id="footnotes">Footnotes</h1>
910+
911+<p>Here is a footnote reference,<sup><a href="#fn1" class="footnoteRef" id="fnref1">1</a></sup> and another.<sup><a href="#fn2" class="footnoteRef" id="fnref2">2</a></sup> This should <em>not</em> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup><a href="#fn3" class="footnoteRef" id="fnref3">3</a></sup></p>
912+
913+<blockquote>
914+<p>Notes can go in quotes.<sup><a href="#fn4" class="footnoteRef" id="fnref4">4</a></sup></p></blockquote>
915+
916+<ol style="list-style-type: decimal">
917+<li>
918+And in list items.<sup><a href="#fn5" class="footnoteRef" id="fnref5">5</a></sup></li>
919+</ol>
920+
921+<p>This paragraph should not be part of the note, as it is not indented.</p><div class="footnotes">
922+<hr />
923+<ol>
924+<li id="fn1">
925+<p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document. <a href="#fnref1" class="footnoteBackLink" title="Jump back to footnote 1">↩</a></p></li>
926+<li id="fn2">
927+<p>Here’s the long note. This one contains multiple blocks.</p>
928+
929+<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
930+
931+<pre><code> { &lt;code&gt; }
932+</code></pre>
933+
934+<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. <a href="#fnref2" class="footnoteBackLink" title="Jump back to footnote 2">↩</a></p></li>
935+<li id="fn3">
936+<p>This is <em>easier</em> to type. Inline notes may contain <a href="http://google.com">links</a> and <code>]</code> verbatim characters, as well as [bracketed text]. <a href="#fnref3" class="footnoteBackLink" title="Jump back to footnote 3">↩</a></p></li>
937+<li id="fn4">
938+<p>In quote. <a href="#fnref4" class="footnoteBackLink" title="Jump back to footnote 4">↩</a></p></li>
939+<li id="fn5">
940+<p>In list. <a href="#fnref5" class="footnoteBackLink" title="Jump back to footnote 5">↩</a></p></li>
941+</ol></div>
1162942</body>
1163943</html>