@@ -13,119 +13,96 @@
1313<p
1414>This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.</p
1515><hr
16− /><div id="headers"
17−><h1
18− >Headers</h1
19− ><div id="level-2-with-an-embedded-link"
20− ><h2
21− >Level 2 with an <a href="/url"
22− >embedded link</a
23− ></h2
24− ><div id="level-3-with-emphasis"
25− ><h3
26− >Level 3 with <em
27− >emphasis</em
28− ></h3
29− ><div id="level-4"
30− ><h4
31− >Level 4</h4
32− ><div id="level-5"
33− ><h5
34− >Level 5</h5
35− ></div
36− ></div
37− ></div
38− ></div
39− ></div
40−><div id="level-1"
41−><h1
42− >Level 1</h1
43− ><div id="level-2-with-emphasis"
44− ><h2
45− >Level 2 with <em
46− >emphasis</em
47− ></h2
48− ><div id="level-3"
49− ><h3
50− >Level 3</h3
51− ><p
52− >with no blank line</p
53− ></div
54− ></div
55− ><div id="level-2"
56− ><h2
57− >Level 2</h2
58− ><p
59− >with no blank line</p
60− ><hr
61− /></div
62− ></div
63−><div id="paragraphs"
64−><h1
65− >Paragraphs</h1
66− ><p
67− >Here’s a regular paragraph.</p
68− ><p
69− >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
70− ><p
71− >Here’s one with a bullet. * criminey.</p
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 {
71+ print "working";
72+}
73+</code
74+ ></pre
7275 ><p
73− >There should be a hard line break<br
74− />here.</p
75− ><hr
76− /></div
77−><div id="block-quotes"
78−><h1
79− >Block Quotes</h1
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
8083 ><p
81− >E-mail style:</p
84+ >Nested block quotes:</p
8285 ><blockquote
8386 ><p
84− >This is a block quote. It is pretty short.</p
87+ >nested</p
8588 ></blockquote
8689 ><blockquote
8790 ><p
88− >Code in a block quote:</p
89− ><pre
90− ><code
91− >sub status {
92− print "working";
93−}
94−</code
95− ></pre
96− ><p
97− >A list:</p
98− ><ol style="list-style-type: decimal;"
99− ><li
100− >item one</li
101− ><li
102− >item two</li
103− ></ol
104− ><p
105− >Nested block quotes:</p
106− ><blockquote
107− ><p
108− >nested</p
109− ></blockquote
110− ><blockquote
111− ><p
112− >nested</p
113− ></blockquote
91+ >nested</p
11492 ></blockquote
115− ><p
116− >This should not be a block quote: 2 > 1.</p
117− ><p
118− >And a following paragraph.</p
119− ><hr
120− /></div
121−><div id="code-blocks"
122−><h1
123− >Code Blocks</h1
124− ><p
125− >Code:</p
126− ><pre
127− ><code
128− >---- (should be four hyphens)
93+ ></blockquote
94+><p
95+>This should not be a block quote: 2 > 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)
129106
130107sub status {
131108 print "working";
@@ -133,540 +110,524 @@ sub status {
133110
134111this code block is indented by one tab
135112</code
136− ></pre
137− ><p
138− >And:</p
139− ><pre
140− ><code
141− > this code block is indented by two tabs
113+ ></pre
114+><p
115+>And:</p
116+><pre
117+><code
118+ > this code block is indented by two tabs
142119
143120These should not be escaped: \$ \\ \> \[ \{
144121</code
145− ></pre
146− ><hr
147− /></div
148−><div id="lists"
149−><h1
150− >Lists</h1
151− ><div id="unordered"
152− ><h2
153− >Unordered</h2
154− ><p
155− >Asterisks tight:</p
156− ><ul
157− ><li
158− >asterisk 1</li
159− ><li
160− >asterisk 2</li
161− ><li
162− >asterisk 3</li
163− ></ul
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
164266 ><p
165− >Asterisks loose:</p
166− ><ul
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
167283 ><li
168− ><p
169− >asterisk 1</p
170− ></li
171− ><li
172− ><p
173− >asterisk 2</p
174− ></li
175− ><li
176− ><p
177− >asterisk 3</p
284+ >Tab<ul
285+ ><li
286+ >Tab</li
287+ ></ul
178288 ></li
179289 ></ul
180− ><p
181− >Pluses tight:</p
182− ><ul
183− ><li
184− >Plus 1</li
185− ><li
186− >Plus 2</li
187− ><li
188− >Plus 3</li
189− ></ul
190− ><p
191− >Pluses loose:</p
192− ><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
193299 ><li
194− ><p
195− >Plus 1</p
196− ></li
300+ >Fee</li
197301 ><li
198− ><p
199− >Plus 2</p
200− ></li
302+ >Fie</li
201303 ><li
202− ><p
203− >Plus 3</p
204− ></li
304+ >Foe</li
205305 ></ul
206− ><p
207− >Minuses tight:</p
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
208320 ><ul
209321 ><li
210− >Minus 1</li
322+ >Fee</li
211323 ><li
212− >Minus 2</li
324+ >Fie</li
213325 ><li
214− >Minus 3</li
326+ >Foe</li
215327 ></ul
216− ><p
217− >Minuses loose:</p
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
218344 ><ul
219345 ><li
220346 ><p
221− >Minus 1</p
222− ></li
223− ><li
224− ><p
225− >Minus 2</p
347+ >this is an example list item indented with tabs</p
226348 ></li
227349 ><li
228350 ><p
229− >Minus 3</p
351+ >this is an example list item indented with spaces</p
230352 ></li
231353 ></ul
232− ></div
233− ><div id="ordered"
234− ><h2
235− >Ordered</h2
236− ><p
237− >Tight:</p
238− ><ol style="list-style-type: decimal;"
239− ><li
240− >First</li
241− ><li
242− >Second</li
243− ><li
244− >Third</li
245− ></ol
246− ><p
247− >and:</p
248− ><ol style="list-style-type: decimal;"
249− ><li
250− >One</li
251− ><li
252− >Two</li
253− ><li
254− >Three</li
255− ></ol
256− ><p
257− >Loose using tabs:</p
258− ><ol style="list-style-type: decimal;"
259− ><li
260− ><p
261− >First</p
262− ></li
263− ><li
264− ><p
265− >Second</p
266− ></li
267− ><li
268− ><p
269− >Third</p
270− ></li
271− ></ol
272− ><p
273− >and using spaces:</p
274− ><ol style="list-style-type: decimal;"
275− ><li
276− ><p
277− >One</p
278− ></li
279− ><li
280− ><p
281− >Two</p
282− ></li
283− ><li
284− ><p
285− >Three</p
286− ></li
287− ></ol
288− ><p
289− >Multiple paragraphs:</p
290− ><ol style="list-style-type: decimal;"
291− ><li
292− ><p
293− >Item 1, graf one.</p
294− ><p
295− >Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.</p
296− ></li
297− ><li
298− ><p
299− >Item 2.</p
300− ></li
301− ><li
302− ><p
303− >Item 3.</p
304− ></li
305− ></ol
306− ></div
307− ><div id="nested"
308− ><h2
309− >Nested</h2
310− ><ul
311− ><li
312− >Tab<ul
313− ><li
314− >Tab<ul
315− ><li
316− >Tab</li
317− ></ul
318− ></li
319− ></ul
320− ></li
321− ></ul
322− ><p
323− >Here’s another:</p
324− ><ol style="list-style-type: decimal;"
325− ><li
326− >First</li
327− ><li
328− >Second:<ul
329− ><li
330− >Fee</li
331− ><li
332− >Fie</li
333− ><li
334− >Foe</li
335− ></ul
336− ></li
337− ><li
338− >Third</li
339− ></ol
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
340364 ><p
341− >Same thing but with paragraphs:</p
342− ><ol style="list-style-type: decimal;"
343− ><li
344− ><p
345− >First</p
346− ></li
347− ><li
348− ><p
349− >Second:</p
350− ><ul
351− ><li
352− >Fee</li
353− ><li
354− >Fie</li
355− ><li
356− >Foe</li
357− ></ul
358− ></li
359− ><li
360− ><p
361− >Third</p
362− ></li
363− ></ol
364− ></div
365− ><div id="tabs-and-spaces"
366− ><h2
367− >Tabs and spaces</h2
368− ><ul
369− ><li
370− ><p
371− >this is a list item indented with tabs</p
372− ></li
373− ><li
374− ><p
375− >this is a list item indented with spaces</p
376− ><ul
377− ><li
378− ><p
379− >this is an example list item indented with tabs</p
380− ></li
381− ><li
382− ><p
383− >this is an example list item indented with spaces</p
384− ></li
385− ></ul
386− ></li
387− ></ul
388− ></div
389− ><div id="fancy-list-markers"
390− ><h2
391− >Fancy list markers</h2
392− ><ol start="2" style="list-style-type: decimal;"
365+ >with a continuation</p
366+ ><ol start="4" style="list-style-type: lower-roman;"
393367 ><li
394− >begins with 2</li
368+ >sublist with roman numerals, starting with 4</li
395369 ><li
396− ><p
397− >and now 3</p
398− ><p
399− >with a continuation</p
400− ><ol start="4" style="list-style-type: lower-roman;"
370+ >more items<ol style="list-style-type: upper-alpha;"
401371 ><li
402− >sublist with roman numerals, starting with 4</li
372+ >a subsublist</li
403373 ><li
404− >more items<ol style="list-style-type: upper-alpha;"
405− ><li
406− >a subsublist</li
407− ><li
408− >a subsublist</li
409− ></ol
410− ></li
374+ >a subsublist</li
411375 ></ol
412376 ></li
413377 ></ol
414− ><p
415− >Nesting:</p
416− ><ol style="list-style-type: upper-alpha;"
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;"
417385 ><li
418− >Upper Alpha<ol style="list-style-type: upper-roman;"
386+ >Upper Roman.<ol start="6" style="list-style-type: decimal;"
419387 ><li
420− >Upper Roman.<ol start="6" style="list-style-type: decimal;"
388+ >Decimal start with 6<ol start="3" style="list-style-type: lower-alpha;"
421389 ><li
422− >Decimal start with 6<ol start="3" style="list-style-type: lower-alpha;"
423− ><li
424− >Lower alpha with paren</li
425− ></ol
426− ></li
390+ >Lower alpha with paren</li
427391 ></ol
428392 ></li
429393 ></ol
430394 ></li
431395 ></ol
432− ><p
433− >Autonumbering:</p
434− ><ol
396+ ></li
397+ ></ol
398+><p
399+>Autonumbering:</p
400+><ol
401+><li
402+ >Autonumber.</li
403+ ><li
404+ >More.<ol
435405 ><li
436− >Autonumber.</li
437− ><li
438− >More.<ol
439− ><li
440− >Nested.</li
441− ></ol
442− ></li
406+ >Nested.</li
443407 ></ol
444− ><p
445− >Should not be a list item:</p
446− ><p
447− >M.A. 2007</p
448− ><p
449− >B. Williams</p
450− ><hr
451− /></div
452− ></div
453−><div id="definition-lists"
454−><h1
455− >Definition Lists</h1
456− ><p
457− >Tight using spaces:</p
458− ><dl
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
459426 ><dt
460− >apple</dt
461− ><dd
462− >red fruit</dd
463− ><dt
464− >orange</dt
465− ><dd
466− >orange fruit</dd
467− ><dt
468− >banana</dt
469− ><dd
470− >yellow fruit</dd
471− ></dl
472− ><p
473− >Tight using tabs:</p
474− ><dl
427+ >orange</dt
428+ ><dd
429+ >orange fruit</dd
475430 ><dt
476− >apple</dt
477− ><dd
478− >red fruit</dd
479− ><dt
480− >orange</dt
481− ><dd
482− >orange fruit</dd
483− ><dt
484− >banana</dt
485− ><dd
486− >yellow fruit</dd
487− ></dl
488− ><p
489− >Loose:</p
490− ><dl
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
491442 ><dt
492− >apple</dt
493− ><dd
494− ><p
495− >red fruit</p
496− ></dd
497− ><dt
498− >orange</dt
499− ><dd
500− ><p
501− >orange fruit</p
502− ></dd
503− ><dt
504− >banana</dt
505− ><dd
506− ><p
507− >yellow fruit</p
508− ></dd
509− ></dl
510− ><p
511− >Multiple blocks with italics:</p
512− ><dl
443+ >orange</dt
444+ ><dd
445+ >orange fruit</dd
513446 ><dt
514− ><em
515− >apple</em
516− ></dt
517− ><dd
518− ><p
519− >red fruit</p
520− ><p
521− >contains seeds, crisp, pleasant to taste</p
522− ></dd
523− ><dt
524− ><em
525− >orange</em
526− ></dt
527− ><dd
528− ><p
529− >orange fruit</p
530− ><pre
531− ><code
532− >{ orange code block }
533−</code
534− ></pre
535− ><blockquote
536− ><p
537− >orange block quote</p
538− ></blockquote
539− ></dd
540− ></dl
541− ><p
542− >Multiple definitions, tight:</p
543− ><dl
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
544460 ><dt
545− >apple</dt
546− ><dd
547− >red fruit</dd
548− ><dd
549− >computer</dd
550− ><dt
551− >orange</dt
552− ><dd
553− >orange fruit</dd
554− ><dd
555− >bank</dd
556− ></dl
461+ >orange</dt
462+ ><dd
557463 ><p
558− >Multiple definitions, loose:</p
559− ><dl
464+ >orange fruit</p
465+ ></dd
560466 ><dt
561− >apple</dt
562− ><dd
563− ><p
564− >red fruit</p
565− ></dd
566− ><dd
567− ><p
568− >computer</p
569− ></dd
570− ><dt
571− >orange</dt
572− ><dd
573− ><p
574− >orange fruit</p
575− ></dd
576− ><dd
577− ><p
578− >bank</p
579− ></dd
580− ></dl
581− ><p
582− >Blank line after term, indented marker, alternate markers:</p
583− ><dl
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
584486 ><dt
585− >apple</dt
586− ><dd
587− ><p
588− >red fruit</p
589− ></dd
590− ><dd
591− ><p
592− >computer</p
593− ></dd
594− ><dt
595− >orange</dt
596− ><dd
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
597499 ><p
598− >orange fruit</p
599− ><ol style="list-style-type: decimal;"
600− ><li
601− >sublist</li
602− ><li
603− >sublist</li
604− ></ol
605− ></dd
606− ></dl
607− ></div
608−><div id="html-blocks"
609−><h1
610− >HTML Blocks</h1
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
611560 ><p
612− >Simple block on one line:</p
613− ><div>foo</div>
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>
614575<p
615− >And nested without indentation:</p
616− ><div>
576+>And nested without indentation:</p
577+><div>
617578<div>
618579<div>foo</div>
619580</div>
620581<div>bar</div>
621582</div>
622583<p
623− >Interpreted markdown in a table:</p
624− ><table>
584+>Interpreted markdown in a table:</p
585+><table>
625586<tr>
626587<td>This is <em
627− >emphasized</em
628− ></td>
588+>emphasized</em
589+></td>
629590<td>And this is <strong
630− >strong</strong
631− ></td>
591+>strong</strong
592+></td>
632593</tr>
633594</table>
634595
635596<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
636597<p
637− >Here’s a simple block:</p
638− ><div>
598+>Here’s a simple block:</p
599+><div>
639600 foo</div>
640601<p
641− >This should be a code block, though:</p
642− ><pre
643− ><code
644− ><div>
602+>This should be a code block, though:</p
603+><pre
604+><code
605+ ><div>
645606 foo
646607</div>
647608</code
648− ></pre
649− ><p
650− >As should this:</p
651− ><pre
652− ><code
653− ><div>foo</div>
609+ ></pre
610+><p
611+>As should this:</p
612+><pre
613+><code
614+ ><div>foo</div>
654615</code
655− ></pre
656− ><p
657− >Now, nested:</p
658− ><div>
616+ ></pre
617+><p
618+>Now, nested:</p
619+><div>
659620 <div>
660621 <div>
661622 foo</div>
662623 </div>
663624</div>
664625<p
665− >This should just be an HTML comment:</p
666− ><!-- Comment -->
626+>This should just be an HTML comment:</p
627+><!-- Comment -->
667628<p
668− >Multiline:</p
669− ><!--
629+>Multiline:</p
630+><!--
670631Blah
671632Blah
672633-->
@@ -675,25 +636,25 @@ Blah
675636 This is another comment.
676637-->
677638<p
678− >Code block:</p
679− ><pre
680− ><code
681− ><!-- Comment -->
639+>Code block:</p
640+><pre
641+><code
642+ ><!-- Comment -->
682643</code
683− ></pre
684− ><p
685− >Just plain comment, with trailing spaces on the line:</p
686− ><!-- foo -->
644+ ></pre
645+><p
646+>Just plain comment, with trailing spaces on the line:</p
647+><!-- foo -->
687648<p
688− >Code:</p
689− ><pre
690− ><code
691− ><hr />
649+>Code:</p
650+><pre
651+><code
652+ ><hr />
692653</code
693− ></pre
694− ><p
695− >Hr’s:</p
696− ><hr>
654+ ></pre
655+><p
656+>Hr’s:</p
657+><hr>
697658
698659<hr />
699660
@@ -711,477 +672,454 @@ Blah
711672
712673<hr class="foo" id="bar">
713674<hr
714− /></div
715−><div id="inline-markup"
716−><h1
717− >Inline Markup</h1
718− ><p
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+ >></code
722+ >, <code
723+ >$</code
724+ >, <code
725+ >\</code
726+ >, <code
727+ >\$</code
728+ >, <code
729+ ><html></code
730+ >.</p
731+><p
732+><span style="text-decoration: line-through;"
719733 >This is <em
720− >emphasized</em
721− >, and so <em
722− >is this</em
723− >.</p
724− ><p
725− >This is <strong
726− >strong</strong
727− >, and so <strong
728− >is this</strong
729− >.</p
730− ><p
731− >An <em
732− ><a href="/url"
733− >emphasized link</a
734− ></em
735− >.</p
736− ><p
737− ><strong
738− ><em
739− >This is strong and em.</em
740− ></strong
741− ></p
742− ><p
743− >So is <strong
744− ><em
745− >this</em
746− ></strong
747− > word.</p
748− ><p
749− ><strong
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&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"
750792 ><em
751− >This is strong and em.</em
752− ></strong
753− ></p
754− ><p
755− >So is <strong
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"
756808 ><em
757− >this</em
758− ></strong
759− > word.</p
760− ><p
761− >This is code: <code
762− >></code
763− >, <code
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
764842 >$</code
765− >, <code
766− >\</code
767− >, <code
768− >\$</code
769− >, <code
770− ><html></code
771− >.</p
772− ><p
773− ><span style="text-decoration: line-through;"
774− >This is <em
775− >strikeout</em
776− >.</span
777− ></p
778− ><p
779− >Superscripts: a<sup
780− >bc</sup
781− >d a<sup
782− ><em
783− >hello</em
784− ></sup
785− > a<sup
786− >hello there</sup
787− >.</p
788− ><p
789− >Subscripts: H<sub
790− >2</sub
791− >O, H<sub
792− >23</sub
793− >O, H<sub
794− >many of them</sub
795− >O.</p
796− ><p
797− >These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</p
798− ><hr
799− /></div
800−><div id="smart-quotes-ellipses-dashes"
801−><h1
802− >Smart quotes, ellipses, dashes</h1
803− ><p
804− >“Hello,” said the spider. “‘Shelob’ is my name.”</p
805− ><p
806− >‘A’, ‘B’, and ‘C’ are letters.</p
807− ><p
808− >‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p
809− ><p
810− >‘He said, “I want to go.”’ Were you alive in the 70’s?</p
811− ><p
812− >Here is some quoted ‘<code
813− >code</code
814− >’ and a “<a href="http://example.com/?foo=1&bar=2"
815− >quoted link</a
816− >”.</p
817− ><p
818− >Some dashes: one—two — three—four — five.</p
819− ><p
820− >Dashes between numbers: 5–7, 255–66, 1987–1999.</p
821− ><p
822− >Ellipses…and…and….</p
823− ><hr
824− /></div
825−><div id="latex"
826−><h1
827− >LaTeX</h1
828− ><ul
843+ >: $73 <em
844+ >this should be emphasized</em
845+ > 23$.</li
846+ ></ul
847+><p
848+>Here’s a LaTeX table:</p
849+><p
850+></p
851+><hr
852+ /><h1 id="special-characters"
853+>Special Characters</h1
854+><p
855+>Here is some unicode:</p
856+><ul
857+><li
858+ >I hat: Î</li
829859 ><li
830− ></li
831− ><li
832− ><span class="math"
833− >2 + 2 = 4</span
834− ></li
835− ><li
836− ><span class="math"
837− ><em
838− >x</em
839− > ∈ <em
840− >y</em
841− ></span
842− ></li
843− ><li
844− ><span class="math"
845− >α ∧ ω</span
846− ></li
847− ><li
848− ><span class="math"
849− >223</span
850− ></li
851− ><li
852− ><span class="math"
853− ><em
854− >p</em
855− ></span
856− >-Tree</li
857− ><li
858− >Here’s some display math: <br
859− /><span class="math"
860− >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span
861− ><br
862− /></li
863− ><li
864− >Here’s one that has a line break in it: <span class="math"
865− >α + ω × <em
866− >x</em
867− ><sup
868− >2</sup
869− ></span
870− >.</li
871− ></ul
872− ><p
873− >These shouldn’t be math:</p
874− ><ul
860+ >o umlaut: ö</li
875861 ><li
876− >To get the famous equation, write <code
877− >$e = mc^2$</code
878− >.</li
879− ><li
880− >$22,000 is a <em
881− >lot</em
882− > of money. So is $34,000. (It worked if “lot” is emphasized.)</li
883− ><li
884− >Shoes ($20) and socks ($5).</li
885− ><li
886− >Escaped <code
887− >$</code
888− >: $73 <em
889− >this should be emphasized</em
890− > 23$.</li
891− ></ul
892− ><p
893− >Here’s a LaTeX table:</p
894− ><p
895− ></p
896− ><hr
897− /></div
898−><div id="special-characters"
899−><h1
900− >Special Characters</h1
901− ><p
902− >Here is some unicode:</p
903− ><ul
862+ >section: §</li
904863 ><li
905− >I hat: Î</li
906− ><li
907− >o umlaut: ö</li
908− ><li
909− >section: §</li
910− ><li
911− >set membership: ∈</li
912− ><li
913− >copyright: ©</li
914− ></ul
915− ><p
916− >AT&T has an ampersand in their name.</p
917− ><p
918− >AT&T is another way to write it.</p
919− ><p
920− >This & that.</p
921− ><p
922− >4 < 5.</p
923− ><p
924− >6 > 5.</p
925− ><p
926− >Backslash: \</p
927− ><p
928− >Backtick: `</p
929− ><p
930− >Asterisk: *</p
931− ><p
932− >Underscore: _</p
933− ><p
934− >Left brace: {</p
935− ><p
936− >Right brace: }</p
937− ><p
938− >Left bracket: [</p
939− ><p
940− >Right bracket: ]</p
941− ><p
942− >Left paren: (</p
943− ><p
944− >Right paren: )</p
945− ><p
946− >Greater-than: ></p
947− ><p
948− >Hash: #</p
949− ><p
950− >Period: .</p
951− ><p
952− >Bang: !</p
953− ><p
954− >Plus: +</p
955− ><p
956− >Minus: -</p
957− ><hr
958− /></div
959−><div id="links"
960−><h1
961− >Links</h1
962− ><div id="explicit"
963− ><h2
964− >Explicit</h2
965− ><p
966− >Just a <a href="/url/"
967− >URL</a
968− >.</p
969− ><p
970− ><a href="/url/" title="title"
971− >URL and title</a
972− >.</p
973− ><p
974− ><a href="/url/" title="title preceded by two spaces"
975− >URL and title</a
976− >.</p
977− ><p
978− ><a href="/url/" title="title preceded by a tab"
979− >URL and title</a
980− >.</p
981− ><p
982− ><a href="/url/" title="title with "quotes" in it"
983− >URL and title</a
984− ></p
985− ><p
986− ><a href="/url/" title="title with single quotes"
987− >URL and title</a
988− ></p
989− ><p
990− ><a href="/url/with_underscore"
991− >with_underscore</a
992− ></p
993− ><p
994− ><script type="text/javascript"
995− >
864+ >set membership: ∈</li
865+ ><li
866+ >copyright: ©</li
867+ ></ul
868+><p
869+>AT&T has an ampersand in their name.</p
870+><p
871+>AT&T is another way to write it.</p
872+><p
873+>This & that.</p
874+><p
875+>4 < 5.</p
876+><p
877+>6 > 5.</p
878+><p
879+>Backslash: \</p
880+><p
881+>Backtick: `</p
882+><p
883+>Asterisk: *</p
884+><p
885+>Underscore: _</p
886+><p
887+>Left brace: {</p
888+><p
889+>Right brace: }</p
890+><p
891+>Left bracket: [</p
892+><p
893+>Right bracket: ]</p
894+><p
895+>Left paren: (</p
896+><p
897+>Right paren: )</p
898+><p
899+>Greater-than: ></p
900+><p
901+>Hash: #</p
902+><p
903+>Period: .</p
904+><p
905+>Bang: !</p
906+><p
907+>Plus: +</p
908+><p
909+>Minus: -</p
910+><hr
911+ /><h1 id="links"
912+>Links</h1
913+><h2 id="explicit"
914+>Explicit</h2
915+><p
916+>Just a <a href="/url/"
917+ >URL</a
918+ >.</p
919+><p
920+><a href="/url/" title="title"
921+ >URL and title</a
922+ >.</p
923+><p
924+><a href="/url/" title="title preceded by two spaces"
925+ >URL and title</a
926+ >.</p
927+><p
928+><a href="/url/" title="title preceded by a tab"
929+ >URL and title</a
930+ >.</p
931+><p
932+><a href="/url/" title="title with "quotes" in it"
933+ >URL and title</a
934+ ></p
935+><p
936+><a href="/url/" title="title with single quotes"
937+ >URL and title</a
938+ ></p
939+><p
940+><a href="/url/with_underscore"
941+ >with_underscore</a
942+ ></p
943+><p
944+><script type="text/javascript"
945+ >
996946<!--
997947h='nowhere.net';a='@';n='nobody';e=n+a+h;
998948document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>');
999949// -->
1000950</script
1001− ><noscript
1002− >Email link (nobody at nowhere dot net)</noscript
1003− ></p
1004− ><p
1005− ><a href=""
1006− >Empty</a
1007− >.</p
1008− ></div
1009− ><div id="reference"
1010− ><h2
1011− >Reference</h2
1012− ><p
1013− >Foo <a href="/url/"
1014− >bar</a
1015− >.</p
1016− ><p
1017− >Foo <a href="/url/"
1018− >bar</a
1019− >.</p
1020− ><p
1021− >Foo <a href="/url/"
1022− >bar</a
1023− >.</p
1024− ><p
1025− >With <a href="/url/"
1026− >embedded [brackets]</a
1027− >.</p
1028− ><p
1029− ><a href="/url/"
1030− >b</a
1031− > by itself should be a link.</p
1032− ><p
1033− >Indented <a href="/url"
1034− >once</a
1035− >.</p
1036− ><p
1037− >Indented <a href="/url"
1038− >twice</a
1039− >.</p
1040− ><p
1041− >Indented <a href="/url"
1042− >thrice</a
1043− >.</p
1044− ><p
1045− >This should [not][] be a link.</p
1046− ><pre
1047− ><code
1048− >[not]: /url
951+ ><noscript
952+ >Email link (nobody at nowhere dot net)</noscript
953+ ></p
954+><p
955+><a href=""
956+ >Empty</a
957+ >.</p
958+><h2 id="reference"
959+>Reference</h2
960+><p
961+>Foo <a href="/url/"
962+ >bar</a
963+ >.</p
964+><p
965+>Foo <a href="/url/"
966+ >bar</a
967+ >.</p
968+><p
969+>Foo <a href="/url/"
970+ >bar</a
971+ >.</p
972+><p
973+>With <a href="/url/"
974+ >embedded [brackets]</a
975+ >.</p
976+><p
977+><a href="/url/"
978+ >b</a
979+ > by itself should be a link.</p
980+><p
981+>Indented <a href="/url"
982+ >once</a
983+ >.</p
984+><p
985+>Indented <a href="/url"
986+ >twice</a
987+ >.</p
988+><p
989+>Indented <a href="/url"
990+ >thrice</a
991+ >.</p
992+><p
993+>This should [not][] be a link.</p
994+><pre
995+><code
996+ >[not]: /url
1049997</code
1050− ></pre
1051− ><p
1052− >Foo <a href="/url/" title="Title with "quotes" inside"
1053− >bar</a
1054− >.</p
1055− ><p
1056− >Foo <a href="/url/" title="Title with "quote" inside"
1057− >biz</a
1058− >.</p
1059− ></div
1060− ><div id="with-ampersands"
1061− ><h2
1062− >With ampersands</h2
1063− ><p
1064− >Here’s a <a href="http://example.com/?foo=1&bar=2"
1065− >link with an ampersand in the URL</a
1066− >.</p
1067− ><p
1068− >Here’s a link with an amersand in the link text: <a href="http://att.com/" title="AT&T"
1069− >AT&T</a
1070− >.</p
1071− ><p
1072− >Here’s an <a href="/script?foo=1&bar=2"
1073− >inline link</a
1074− >.</p
1075− ><p
1076− >Here’s an <a href="/script?foo=1&bar=2"
1077− >inline link in pointy braces</a
1078− >.</p
1079− ></div
1080− ><div id="autolinks"
1081− ><h2
1082− >Autolinks</h2
1083− ><p
1084− >With an ampersand: <a href="http://example.com/?foo=1&bar=2"
1085− ><code
1086− >http://example.com/?foo=1&bar=2</code
1087− ></a
1088− ></p
1089− ><ul
1090− ><li
1091− >In a list?</li
1092− ><li
1093− ><a href="http://example.com/"
1094− ><code
1095− >http://example.com/</code
1096− ></a
1097− ></li
1098− ><li
1099− >It should.</li
1100− ></ul
1101− ><p
1102− >An e-mail address: <script type="text/javascript"
1103− >
998+ ></pre
999+><p
1000+>Foo <a href="/url/" title="Title with "quotes" inside"
1001+ >bar</a
1002+ >.</p
1003+><p
1004+>Foo <a href="/url/" title="Title with "quote" inside"
1005+ >biz</a
1006+ >.</p
1007+><h2 id="with-ampersands"
1008+>With ampersands</h2
1009+><p
1010+>Here’s a <a href="http://example.com/?foo=1&bar=2"
1011+ >link with an ampersand in the URL</a
1012+ >.</p
1013+><p
1014+>Here’s a link with an amersand in the link text: <a href="http://att.com/" title="AT&T"
1015+ >AT&T</a
1016+ >.</p
1017+><p
1018+>Here’s an <a href="/script?foo=1&bar=2"
1019+ >inline link</a
1020+ >.</p
1021+><p
1022+>Here’s an <a href="/script?foo=1&bar=2"
1023+ >inline link in pointy braces</a
1024+ >.</p
1025+><h2 id="autolinks"
1026+>Autolinks</h2
1027+><p
1028+>With an ampersand: <a href="http://example.com/?foo=1&bar=2"
1029+ ><code
1030+ >http://example.com/?foo=1&bar=2</code
1031+ ></a
1032+ ></p
1033+><ul
1034+><li
1035+ >In a list?</li
1036+ ><li
1037+ ><a href="http://example.com/"
1038+ ><code
1039+ >http://example.com/</code
1040+ ></a
1041+ ></li
1042+ ><li
1043+ >It should.</li
1044+ ></ul
1045+><p
1046+>An e-mail address: <script type="text/javascript"
1047+ >
11041048<!--
11051049h='nowhere.net';a='@';n='nobody';e=n+a+h;
11061050document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'<code>'+e+'</code>'+'<\/'+'a'+'>');
11071051// -->
11081052</script
1109− ><noscript
1110− >nobody at nowhere dot net</noscript
1111− ></p
1112− ><blockquote
1113− ><p
1114− >Blockquoted: <a href="http://example.com/"
1115− ><code
1116− >http://example.com/</code
1117− ></a
1118− ></p
1119− ></blockquote
1120− ><p
1121− >Auto-links should not occur here: <code
1122− ><http://example.com/></code
1123− ></p
1124− ><pre
1053+ ><noscript
1054+ >nobody at nowhere dot net</noscript
1055+ ></p
1056+><blockquote
1057+><p
1058+ >Blockquoted: <a href="http://example.com/"
11251059 ><code
1126− >or here: <http://example.com/>
1060+ >http://example.com/</code
1061+ ></a
1062+ ></p
1063+ ></blockquote
1064+><p
1065+>Auto-links should not occur here: <code
1066+ ><http://example.com/></code
1067+ ></p
1068+><pre
1069+><code
1070+ >or here: <http://example.com/>
11271071</code
1128− ></pre
1129− ><hr
1130− /></div
1072+ ></pre
1073+><hr
1074+ /><h1 id="images"
1075+>Images</h1
1076+><p
1077+>From “Voyage dans la Lune” by Georges Melies (1902):</p
1078+><div class="figure"
1079+><img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune"
1080+ /><p class="caption"
1081+ >lalune</p
11311082 ></div
1132−><div id="images"
1133−><h1
1134− >Images</h1
1135− ><p
1136− >From “Voyage dans la Lune” by Georges Melies (1902):</p
1137− ><div class="figure"
1138− ><img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune"
1139− /><p class="caption"
1140− >lalune</p
1141− ></div
1142− ><p
1143− >Here is a movie <img src="movie.jpg" alt="movie"
1144− /> icon.</p
1145− ><hr
1146− /></div
1147−><div id="footnotes"
1148−><h1
1149− >Footnotes</h1
1150− ><p
1151− >Here is a footnote reference,<sup
1152− ><a href="#fn1" class="footnoteRef" id="fnref1"
1153− >1</a
1154− ></sup
1155− > and another.<sup
1156− ><a href="#fn2" class="footnoteRef" id="fnref2"
1157− >2</a
1158− ></sup
1159− > This should <em
1160− >not</em
1161− > be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup
1162− ><a href="#fn3" class="footnoteRef" id="fnref3"
1163− >3</a
1083+><p
1084+>Here is a movie <img src="movie.jpg" alt="movie"
1085+ /> icon.</p
1086+><hr
1087+ /><h1 id="footnotes"
1088+>Footnotes</h1
1089+><p
1090+>Here is a footnote reference,<sup
1091+ ><a href="#fn1" class="footnoteRef" id="fnref1"
1092+ >1</a
1093+ ></sup
1094+ > and another.<sup
1095+ ><a href="#fn2" class="footnoteRef" id="fnref2"
1096+ >2</a
1097+ ></sup
1098+ > This should <em
1099+ >not</em
1100+ > be a footnote reference, because it contains a space.[^my note] Here is an inline note.<sup
1101+ ><a href="#fn3" class="footnoteRef" id="fnref3"
1102+ >3</a
1103+ ></sup
1104+ ></p
1105+><blockquote
1106+><p
1107+ >Notes can go in quotes.<sup
1108+ ><a href="#fn4" class="footnoteRef" id="fnref4"
1109+ >4</a
11641110 ></sup
11651111 ></p
1166− ><blockquote
1167− ><p
1168− >Notes can go in quotes.<sup
1169− ><a href="#fn4" class="footnoteRef" id="fnref4"
1170− >4</a
1171− ></sup
1172− ></p
1173− ></blockquote
1174− ><ol style="list-style-type: decimal;"
1175− ><li
1176− >And in list items.<sup
1177− ><a href="#fn5" class="footnoteRef" id="fnref5"
1178− >5</a
1179− ></sup
1180− ></li
1181− ></ol
1182− ><p
1183− >This paragraph should not be part of the note, as it is not indented.</p
1184− ></div
1112+ ></blockquote
1113+><ol style="list-style-type: decimal;"
1114+><li
1115+ >And in list items.<sup
1116+ ><a href="#fn5" class="footnoteRef" id="fnref5"
1117+ >5</a
1118+ ></sup
1119+ ></li
1120+ ></ol
1121+><p
1122+>This paragraph should not be part of the note, as it is not indented.</p
11851123><div class="footnotes"
11861124><hr
11871125 /><ol