@@ -0,0 +1,1394 @@
1+<?xml version="1.0" encoding="utf-8" ?>
2+<!DOCTYPE article>
3+<article xmlns="http://docbook.org/ns/docbook" version="5.0">
4+ <info>
5+ <title>Pandoc Test Suite</title>
6+ <authorgroup>
7+ <author>
8+ <firstname>John</firstname>
9+ <surname>MacFarlane</surname>
10+ </author>
11+ <author>
12+ <firstname></firstname>
13+ <surname>Anonymous</surname>
14+ </author>
15+ </authorgroup>
16+ <date>July 17, 2006</date>
17+ </info>
18+<para>
19+ This is a set of tests for pandoc. Most of them are adapted from John
20+ Gruber’s markdown test suite.
21+</para>
22+<section id="headers">
23+ <title>Headers</title>
24+ <section id="level-2-with-an-embedded-link">
25+ <title>Level 2 with an <ulink url="/url">embedded link</ulink></title>
26+ <section id="level-3-with-emphasis">
27+ <title>Level 3 with <emphasis>emphasis</emphasis></title>
28+ <section id="level-4">
29+ <title>Level 4</title>
30+ <section id="level-5">
31+ <title>Level 5</title>
32+ <para>
33+ </para>
34+ </section>
35+ </section>
36+ </section>
37+ </section>
38+</section>
39+<section id="level-1">
40+ <title>Level 1</title>
41+ <section id="level-2-with-emphasis">
42+ <title>Level 2 with <emphasis>emphasis</emphasis></title>
43+ <section id="level-3">
44+ <title>Level 3</title>
45+ <para>
46+ with no blank line
47+ </para>
48+ </section>
49+ </section>
50+ <section id="level-2">
51+ <title>Level 2</title>
52+ <para>
53+ with no blank line
54+ </para>
55+ </section>
56+</section>
57+<section id="paragraphs">
58+ <title>Paragraphs</title>
59+ <para>
60+ Here’s a regular paragraph.
61+ </para>
62+ <para>
63+ In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
64+ item. Because a hard-wrapped line in the middle of a paragraph looked like
65+ a list item.
66+ </para>
67+ <para>
68+ Here’s one with a bullet. * criminey.
69+ </para>
70+<literallayout>There should be a hard line break
71+here.</literallayout>
72+</section>
73+<section id="block-quotes">
74+ <title>Block Quotes</title>
75+ <para>
76+ E-mail style:
77+ </para>
78+ <blockquote>
79+ <para>
80+ This is a block quote. It is pretty short.
81+ </para>
82+ </blockquote>
83+ <blockquote>
84+ <para>
85+ Code in a block quote:
86+ </para>
87+ <programlisting>
88+sub status {
89+ print "working";
90+}
91+</programlisting>
92+ <para>
93+ A list:
94+ </para>
95+ <orderedlist numeration="arabic" spacing="compact">
96+ <listitem>
97+ <para>
98+ item one
99+ </para>
100+ </listitem>
101+ <listitem>
102+ <para>
103+ item two
104+ </para>
105+ </listitem>
106+ </orderedlist>
107+ <para>
108+ Nested block quotes:
109+ </para>
110+ <blockquote>
111+ <para>
112+ nested
113+ </para>
114+ </blockquote>
115+ <blockquote>
116+ <para>
117+ nested
118+ </para>
119+ </blockquote>
120+ </blockquote>
121+ <para>
122+ This should not be a block quote: 2 > 1.
123+ </para>
124+ <para>
125+ And a following paragraph.
126+ </para>
127+</section>
128+<section id="code-blocks">
129+ <title>Code Blocks</title>
130+ <para>
131+ Code:
132+ </para>
133+ <programlisting>
134+---- (should be four hyphens)
135+
136+sub status {
137+ print "working";
138+}
139+
140+this code block is indented by one tab
141+</programlisting>
142+ <para>
143+ And:
144+ </para>
145+ <programlisting>
146+ this code block is indented by two tabs
147+
148+These should not be escaped: \$ \\ \> \[ \{
149+</programlisting>
150+</section>
151+<section id="lists">
152+ <title>Lists</title>
153+ <section id="unordered">
154+ <title>Unordered</title>
155+ <para>
156+ Asterisks tight:
157+ </para>
158+ <itemizedlist spacing="compact">
159+ <listitem>
160+ <para>
161+ asterisk 1
162+ </para>
163+ </listitem>
164+ <listitem>
165+ <para>
166+ asterisk 2
167+ </para>
168+ </listitem>
169+ <listitem>
170+ <para>
171+ asterisk 3
172+ </para>
173+ </listitem>
174+ </itemizedlist>
175+ <para>
176+ Asterisks loose:
177+ </para>
178+ <itemizedlist>
179+ <listitem>
180+ <para>
181+ asterisk 1
182+ </para>
183+ </listitem>
184+ <listitem>
185+ <para>
186+ asterisk 2
187+ </para>
188+ </listitem>
189+ <listitem>
190+ <para>
191+ asterisk 3
192+ </para>
193+ </listitem>
194+ </itemizedlist>
195+ <para>
196+ Pluses tight:
197+ </para>
198+ <itemizedlist spacing="compact">
199+ <listitem>
200+ <para>
201+ Plus 1
202+ </para>
203+ </listitem>
204+ <listitem>
205+ <para>
206+ Plus 2
207+ </para>
208+ </listitem>
209+ <listitem>
210+ <para>
211+ Plus 3
212+ </para>
213+ </listitem>
214+ </itemizedlist>
215+ <para>
216+ Pluses loose:
217+ </para>
218+ <itemizedlist>
219+ <listitem>
220+ <para>
221+ Plus 1
222+ </para>
223+ </listitem>
224+ <listitem>
225+ <para>
226+ Plus 2
227+ </para>
228+ </listitem>
229+ <listitem>
230+ <para>
231+ Plus 3
232+ </para>
233+ </listitem>
234+ </itemizedlist>
235+ <para>
236+ Minuses tight:
237+ </para>
238+ <itemizedlist spacing="compact">
239+ <listitem>
240+ <para>
241+ Minus 1
242+ </para>
243+ </listitem>
244+ <listitem>
245+ <para>
246+ Minus 2
247+ </para>
248+ </listitem>
249+ <listitem>
250+ <para>
251+ Minus 3
252+ </para>
253+ </listitem>
254+ </itemizedlist>
255+ <para>
256+ Minuses loose:
257+ </para>
258+ <itemizedlist>
259+ <listitem>
260+ <para>
261+ Minus 1
262+ </para>
263+ </listitem>
264+ <listitem>
265+ <para>
266+ Minus 2
267+ </para>
268+ </listitem>
269+ <listitem>
270+ <para>
271+ Minus 3
272+ </para>
273+ </listitem>
274+ </itemizedlist>
275+ </section>
276+ <section id="ordered">
277+ <title>Ordered</title>
278+ <para>
279+ Tight:
280+ </para>
281+ <orderedlist numeration="arabic" spacing="compact">
282+ <listitem>
283+ <para>
284+ First
285+ </para>
286+ </listitem>
287+ <listitem>
288+ <para>
289+ Second
290+ </para>
291+ </listitem>
292+ <listitem>
293+ <para>
294+ Third
295+ </para>
296+ </listitem>
297+ </orderedlist>
298+ <para>
299+ and:
300+ </para>
301+ <orderedlist numeration="arabic" spacing="compact">
302+ <listitem>
303+ <para>
304+ One
305+ </para>
306+ </listitem>
307+ <listitem>
308+ <para>
309+ Two
310+ </para>
311+ </listitem>
312+ <listitem>
313+ <para>
314+ Three
315+ </para>
316+ </listitem>
317+ </orderedlist>
318+ <para>
319+ Loose using tabs:
320+ </para>
321+ <orderedlist numeration="arabic">
322+ <listitem>
323+ <para>
324+ First
325+ </para>
326+ </listitem>
327+ <listitem>
328+ <para>
329+ Second
330+ </para>
331+ </listitem>
332+ <listitem>
333+ <para>
334+ Third
335+ </para>
336+ </listitem>
337+ </orderedlist>
338+ <para>
339+ and using spaces:
340+ </para>
341+ <orderedlist numeration="arabic">
342+ <listitem>
343+ <para>
344+ One
345+ </para>
346+ </listitem>
347+ <listitem>
348+ <para>
349+ Two
350+ </para>
351+ </listitem>
352+ <listitem>
353+ <para>
354+ Three
355+ </para>
356+ </listitem>
357+ </orderedlist>
358+ <para>
359+ Multiple paragraphs:
360+ </para>
361+ <orderedlist numeration="arabic">
362+ <listitem>
363+ <para>
364+ Item 1, graf one.
365+ </para>
366+ <para>
367+ Item 1. graf two. The quick brown fox jumped over the lazy dog’s
368+ back.
369+ </para>
370+ </listitem>
371+ <listitem>
372+ <para>
373+ Item 2.
374+ </para>
375+ </listitem>
376+ <listitem>
377+ <para>
378+ Item 3.
379+ </para>
380+ </listitem>
381+ </orderedlist>
382+ </section>
383+ <section id="nested">
384+ <title>Nested</title>
385+ <itemizedlist spacing="compact">
386+ <listitem>
387+ <para>
388+ Tab
389+ </para>
390+ <itemizedlist spacing="compact">
391+ <listitem>
392+ <para>
393+ Tab
394+ </para>
395+ <itemizedlist spacing="compact">
396+ <listitem>
397+ <para>
398+ Tab
399+ </para>
400+ </listitem>
401+ </itemizedlist>
402+ </listitem>
403+ </itemizedlist>
404+ </listitem>
405+ </itemizedlist>
406+ <para>
407+ Here’s another:
408+ </para>
409+ <orderedlist numeration="arabic" spacing="compact">
410+ <listitem>
411+ <para>
412+ First
413+ </para>
414+ </listitem>
415+ <listitem>
416+ <para>
417+ Second:
418+ </para>
419+ <itemizedlist spacing="compact">
420+ <listitem>
421+ <para>
422+ Fee
423+ </para>
424+ </listitem>
425+ <listitem>
426+ <para>
427+ Fie
428+ </para>
429+ </listitem>
430+ <listitem>
431+ <para>
432+ Foe
433+ </para>
434+ </listitem>
435+ </itemizedlist>
436+ </listitem>
437+ <listitem>
438+ <para>
439+ Third
440+ </para>
441+ </listitem>
442+ </orderedlist>
443+ <para>
444+ Same thing but with paragraphs:
445+ </para>
446+ <orderedlist numeration="arabic">
447+ <listitem>
448+ <para>
449+ First
450+ </para>
451+ </listitem>
452+ <listitem>
453+ <para>
454+ Second:
455+ </para>
456+ <itemizedlist spacing="compact">
457+ <listitem>
458+ <para>
459+ Fee
460+ </para>
461+ </listitem>
462+ <listitem>
463+ <para>
464+ Fie
465+ </para>
466+ </listitem>
467+ <listitem>
468+ <para>
469+ Foe
470+ </para>
471+ </listitem>
472+ </itemizedlist>
473+ </listitem>
474+ <listitem>
475+ <para>
476+ Third
477+ </para>
478+ </listitem>
479+ </orderedlist>
480+ </section>
481+ <section id="tabs-and-spaces">
482+ <title>Tabs and spaces</title>
483+ <itemizedlist>
484+ <listitem>
485+ <para>
486+ this is a list item indented with tabs
487+ </para>
488+ </listitem>
489+ <listitem>
490+ <para>
491+ this is a list item indented with spaces
492+ </para>
493+ <itemizedlist>
494+ <listitem>
495+ <para>
496+ this is an example list item indented with tabs
497+ </para>
498+ </listitem>
499+ <listitem>
500+ <para>
501+ this is an example list item indented with spaces
502+ </para>
503+ </listitem>
504+ </itemizedlist>
505+ </listitem>
506+ </itemizedlist>
507+ </section>
508+ <section id="fancy-list-markers">
509+ <title>Fancy list markers</title>
510+ <orderedlist numeration="arabic">
511+ <listitem override="2">
512+ <para>
513+ begins with 2
514+ </para>
515+ </listitem>
516+ <listitem>
517+ <para>
518+ and now 3
519+ </para>
520+ <para>
521+ with a continuation
522+ </para>
523+ <orderedlist numeration="lowerroman" spacing="compact">
524+ <listitem override="4">
525+ <para>
526+ sublist with roman numerals, starting with 4
527+ </para>
528+ </listitem>
529+ <listitem>
530+ <para>
531+ more items
532+ </para>
533+ <orderedlist numeration="upperalpha" spacing="compact">
534+ <listitem>
535+ <para>
536+ a subsublist
537+ </para>
538+ </listitem>
539+ <listitem>
540+ <para>
541+ a subsublist
542+ </para>
543+ </listitem>
544+ </orderedlist>
545+ </listitem>
546+ </orderedlist>
547+ </listitem>
548+ </orderedlist>
549+ <para>
550+ Nesting:
551+ </para>
552+ <orderedlist numeration="upperalpha" spacing="compact">
553+ <listitem>
554+ <para>
555+ Upper Alpha
556+ </para>
557+ <orderedlist numeration="upperroman" spacing="compact">
558+ <listitem>
559+ <para>
560+ Upper Roman.
561+ </para>
562+ <orderedlist numeration="arabic" spacing="compact">
563+ <listitem override="6">
564+ <para>
565+ Decimal start with 6
566+ </para>
567+ <orderedlist numeration="loweralpha" spacing="compact">
568+ <listitem override="3">
569+ <para>
570+ Lower alpha with paren
571+ </para>
572+ </listitem>
573+ </orderedlist>
574+ </listitem>
575+ </orderedlist>
576+ </listitem>
577+ </orderedlist>
578+ </listitem>
579+ </orderedlist>
580+ <para>
581+ Autonumbering:
582+ </para>
583+ <orderedlist spacing="compact">
584+ <listitem>
585+ <para>
586+ Autonumber.
587+ </para>
588+ </listitem>
589+ <listitem>
590+ <para>
591+ More.
592+ </para>
593+ <orderedlist spacing="compact">
594+ <listitem>
595+ <para>
596+ Nested.
597+ </para>
598+ </listitem>
599+ </orderedlist>
600+ </listitem>
601+ </orderedlist>
602+ <para>
603+ Should not be a list item:
604+ </para>
605+ <para>
606+ M.A. 2007
607+ </para>
608+ <para>
609+ B. Williams
610+ </para>
611+ </section>
612+</section>
613+<section id="definition-lists">
614+ <title>Definition Lists</title>
615+ <para>
616+ Tight using spaces:
617+ </para>
618+ <variablelist spacing="compact">
619+ <varlistentry>
620+ <term>
621+ apple
622+ </term>
623+ <listitem>
624+ <para>
625+ red fruit
626+ </para>
627+ </listitem>
628+ </varlistentry>
629+ <varlistentry>
630+ <term>
631+ orange
632+ </term>
633+ <listitem>
634+ <para>
635+ orange fruit
636+ </para>
637+ </listitem>
638+ </varlistentry>
639+ <varlistentry>
640+ <term>
641+ banana
642+ </term>
643+ <listitem>
644+ <para>
645+ yellow fruit
646+ </para>
647+ </listitem>
648+ </varlistentry>
649+ </variablelist>
650+ <para>
651+ Tight using tabs:
652+ </para>
653+ <variablelist spacing="compact">
654+ <varlistentry>
655+ <term>
656+ apple
657+ </term>
658+ <listitem>
659+ <para>
660+ red fruit
661+ </para>
662+ </listitem>
663+ </varlistentry>
664+ <varlistentry>
665+ <term>
666+ orange
667+ </term>
668+ <listitem>
669+ <para>
670+ orange fruit
671+ </para>
672+ </listitem>
673+ </varlistentry>
674+ <varlistentry>
675+ <term>
676+ banana
677+ </term>
678+ <listitem>
679+ <para>
680+ yellow fruit
681+ </para>
682+ </listitem>
683+ </varlistentry>
684+ </variablelist>
685+ <para>
686+ Loose:
687+ </para>
688+ <variablelist>
689+ <varlistentry>
690+ <term>
691+ apple
692+ </term>
693+ <listitem>
694+ <para>
695+ red fruit
696+ </para>
697+ </listitem>
698+ </varlistentry>
699+ <varlistentry>
700+ <term>
701+ orange
702+ </term>
703+ <listitem>
704+ <para>
705+ orange fruit
706+ </para>
707+ </listitem>
708+ </varlistentry>
709+ <varlistentry>
710+ <term>
711+ banana
712+ </term>
713+ <listitem>
714+ <para>
715+ yellow fruit
716+ </para>
717+ </listitem>
718+ </varlistentry>
719+ </variablelist>
720+ <para>
721+ Multiple blocks with italics:
722+ </para>
723+ <variablelist>
724+ <varlistentry>
725+ <term>
726+ <emphasis>apple</emphasis>
727+ </term>
728+ <listitem>
729+ <para>
730+ red fruit
731+ </para>
732+ <para>
733+ contains seeds, crisp, pleasant to taste
734+ </para>
735+ </listitem>
736+ </varlistentry>
737+ <varlistentry>
738+ <term>
739+ <emphasis>orange</emphasis>
740+ </term>
741+ <listitem>
742+ <para>
743+ orange fruit
744+ </para>
745+ <programlisting>
746+{ orange code block }
747+</programlisting>
748+ <blockquote>
749+ <para>
750+ orange block quote
751+ </para>
752+ </blockquote>
753+ </listitem>
754+ </varlistentry>
755+ </variablelist>
756+ <para>
757+ Multiple definitions, tight:
758+ </para>
759+ <variablelist spacing="compact">
760+ <varlistentry>
761+ <term>
762+ apple
763+ </term>
764+ <listitem>
765+ <para>
766+ red fruit
767+ </para>
768+ <para>
769+ computer
770+ </para>
771+ </listitem>
772+ </varlistentry>
773+ <varlistentry>
774+ <term>
775+ orange
776+ </term>
777+ <listitem>
778+ <para>
779+ orange fruit
780+ </para>
781+ <para>
782+ bank
783+ </para>
784+ </listitem>
785+ </varlistentry>
786+ </variablelist>
787+ <para>
788+ Multiple definitions, loose:
789+ </para>
790+ <variablelist>
791+ <varlistentry>
792+ <term>
793+ apple
794+ </term>
795+ <listitem>
796+ <para>
797+ red fruit
798+ </para>
799+ <para>
800+ computer
801+ </para>
802+ </listitem>
803+ </varlistentry>
804+ <varlistentry>
805+ <term>
806+ orange
807+ </term>
808+ <listitem>
809+ <para>
810+ orange fruit
811+ </para>
812+ <para>
813+ bank
814+ </para>
815+ </listitem>
816+ </varlistentry>
817+ </variablelist>
818+ <para>
819+ Blank line after term, indented marker, alternate markers:
820+ </para>
821+ <variablelist>
822+ <varlistentry>
823+ <term>
824+ apple
825+ </term>
826+ <listitem>
827+ <para>
828+ red fruit
829+ </para>
830+ <para>
831+ computer
832+ </para>
833+ </listitem>
834+ </varlistentry>
835+ <varlistentry>
836+ <term>
837+ orange
838+ </term>
839+ <listitem>
840+ <para>
841+ orange fruit
842+ </para>
843+ <orderedlist numeration="arabic" spacing="compact">
844+ <listitem>
845+ <para>
846+ sublist
847+ </para>
848+ </listitem>
849+ <listitem>
850+ <para>
851+ sublist
852+ </para>
853+ </listitem>
854+ </orderedlist>
855+ </listitem>
856+ </varlistentry>
857+ </variablelist>
858+</section>
859+<section id="html-blocks">
860+ <title>HTML Blocks</title>
861+ <para>
862+ Simple block on one line:
863+ </para>
864+ <para>
865+ foo
866+ </para>
867+ <para>
868+ And nested without indentation:
869+ </para>
870+ <para>
871+ foo
872+ </para>
873+ <para>
874+ bar
875+ </para>
876+ <para>
877+ Interpreted markdown in a table:
878+ </para>
879+ This is <emphasis>emphasized</emphasis>
880+ And this is <emphasis role="strong">strong</emphasis>
881+ <para>
882+ Here’s a simple block:
883+ </para>
884+ <para>
885+ foo
886+ </para>
887+ <para>
888+ This should be a code block, though:
889+ </para>
890+ <programlisting>
891+<div>
892+ foo
893+</div>
894+</programlisting>
895+ <para>
896+ As should this:
897+ </para>
898+ <programlisting>
899+<div>foo</div>
900+</programlisting>
901+ <para>
902+ Now, nested:
903+ </para>
904+ <para>
905+ foo
906+ </para>
907+ <para>
908+ This should just be an HTML comment:
909+ </para>
910+ <para>
911+ Multiline:
912+ </para>
913+ <para>
914+ Code block:
915+ </para>
916+ <programlisting>
917+<!-- Comment -->
918+</programlisting>
919+ <para>
920+ Just plain comment, with trailing spaces on the line:
921+ </para>
922+ <para>
923+ Code:
924+ </para>
925+ <programlisting>
926+<hr />
927+</programlisting>
928+ <para>
929+ Hr’s:
930+ </para>
931+</section>
932+<section id="inline-markup">
933+ <title>Inline Markup</title>
934+ <para>
935+ This is <emphasis>emphasized</emphasis>, and so <emphasis>is
936+ this</emphasis>.
937+ </para>
938+ <para>
939+ This is <emphasis role="strong">strong</emphasis>, and so
940+ <emphasis role="strong">is this</emphasis>.
941+ </para>
942+ <para>
943+ An <emphasis><ulink url="/url">emphasized link</ulink></emphasis>.
944+ </para>
945+ <para>
946+ <emphasis role="strong"><emphasis>This is strong and
947+ em.</emphasis></emphasis>
948+ </para>
949+ <para>
950+ So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
951+ </para>
952+ <para>
953+ <emphasis role="strong"><emphasis>This is strong and
954+ em.</emphasis></emphasis>
955+ </para>
956+ <para>
957+ So is <emphasis role="strong"><emphasis>this</emphasis></emphasis> word.
958+ </para>
959+ <para>
960+ This is code: <literal>></literal>, <literal>$</literal>,
961+ <literal>\</literal>, <literal>\$</literal>,
962+ <literal><html></literal>.
963+ </para>
964+ <para>
965+ <emphasis role="strikethrough">This is
966+ <emphasis>strikeout</emphasis>.</emphasis>
967+ </para>
968+ <para>
969+ Superscripts: a<superscript>bc</superscript>d
970+ a<superscript><emphasis>hello</emphasis></superscript>
971+ a<superscript>hello there</superscript>.
972+ </para>
973+ <para>
974+ Subscripts: H<subscript>2</subscript>O, H<subscript>23</subscript>O,
975+ H<subscript>many of them</subscript>O.
976+ </para>
977+ <para>
978+ These should not be superscripts or subscripts, because of the unescaped
979+ spaces: a^b c^d, a~b c~d.
980+ </para>
981+</section>
982+<section id="smart-quotes-ellipses-dashes">
983+ <title>Smart quotes, ellipses, dashes</title>
984+ <para>
985+ <quote>Hello,</quote> said the spider. <quote><quote>Shelob</quote> is my
986+ name.</quote>
987+ </para>
988+ <para>
989+ <quote>A</quote>, <quote>B</quote>, and <quote>C</quote> are letters.
990+ </para>
991+ <para>
992+ <quote>Oak,</quote> <quote>elm,</quote> and <quote>beech</quote> are names
993+ of trees. So is <quote>pine.</quote>
994+ </para>
995+ <para>
996+ <quote>He said, <quote>I want to go.</quote></quote> Were you alive in the
997+ 70’s?
998+ </para>
999+ <para>
1000+ Here is some quoted <quote><literal>code</literal></quote> and a
1001+ <quote><ulink url="http://example.com/?foo=1&bar=2">quoted
1002+ link</ulink></quote>.
1003+ </para>
1004+ <para>
1005+ Some dashes: one—two — three—four — five.
1006+ </para>
1007+ <para>
1008+ Dashes between numbers: 5–7, 255–66, 1987–1999.
1009+ </para>
1010+ <para>
1011+ Ellipses…and…and….
1012+ </para>
1013+</section>
1014+<section id="latex">
1015+ <title>LaTeX</title>
1016+ <itemizedlist spacing="compact">
1017+ <listitem>
1018+ <para>
1019+ </para>
1020+ </listitem>
1021+ <listitem>
1022+ <para>
1023+ 2 + 2 = 4
1024+ </para>
1025+ </listitem>
1026+ <listitem>
1027+ <para>
1028+ <emphasis>x</emphasis> ∈ <emphasis>y</emphasis>
1029+ </para>
1030+ </listitem>
1031+ <listitem>
1032+ <para>
1033+ <emphasis>α</emphasis> ∧ <emphasis>ω</emphasis>
1034+ </para>
1035+ </listitem>
1036+ <listitem>
1037+ <para>
1038+ 223
1039+ </para>
1040+ </listitem>
1041+ <listitem>
1042+ <para>
1043+ <emphasis>p</emphasis>-Tree
1044+ </para>
1045+ </listitem>
1046+ <listitem>
1047+ <para>
1048+ Here’s some display math:
1049+ $$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$$
1050+ </para>
1051+ </listitem>
1052+ <listitem>
1053+ <para>
1054+ Here’s one that has a line break in it:
1055+ <emphasis>α</emphasis> + <emphasis>ω</emphasis> × <emphasis>x</emphasis><superscript>2</superscript>.
1056+ </para>
1057+ </listitem>
1058+ </itemizedlist>
1059+ <para>
1060+ These shouldn’t be math:
1061+ </para>
1062+ <itemizedlist spacing="compact">
1063+ <listitem>
1064+ <para>
1065+ To get the famous equation, write <literal>$e = mc^2$</literal>.
1066+ </para>
1067+ </listitem>
1068+ <listitem>
1069+ <para>
1070+ $22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
1071+ worked if <quote>lot</quote> is emphasized.)
1072+ </para>
1073+ </listitem>
1074+ <listitem>
1075+ <para>
1076+ Shoes ($20) and socks ($5).
1077+ </para>
1078+ </listitem>
1079+ <listitem>
1080+ <para>
1081+ Escaped <literal>$</literal>: $73 <emphasis>this should be
1082+ emphasized</emphasis> 23$.
1083+ </para>
1084+ </listitem>
1085+ </itemizedlist>
1086+ <para>
1087+ Here’s a LaTeX table:
1088+ </para>
1089+</section>
1090+<section id="special-characters">
1091+ <title>Special Characters</title>
1092+ <para>
1093+ Here is some unicode:
1094+ </para>
1095+ <itemizedlist spacing="compact">
1096+ <listitem>
1097+ <para>
1098+ I hat: Î
1099+ </para>
1100+ </listitem>
1101+ <listitem>
1102+ <para>
1103+ o umlaut: ö
1104+ </para>
1105+ </listitem>
1106+ <listitem>
1107+ <para>
1108+ section: §
1109+ </para>
1110+ </listitem>
1111+ <listitem>
1112+ <para>
1113+ set membership: ∈
1114+ </para>
1115+ </listitem>
1116+ <listitem>
1117+ <para>
1118+ copyright: ©
1119+ </para>
1120+ </listitem>
1121+ </itemizedlist>
1122+ <para>
1123+ AT&T has an ampersand in their name.
1124+ </para>
1125+ <para>
1126+ AT&T is another way to write it.
1127+ </para>
1128+ <para>
1129+ This & that.
1130+ </para>
1131+ <para>
1132+ 4 < 5.
1133+ </para>
1134+ <para>
1135+ 6 > 5.
1136+ </para>
1137+ <para>
1138+ Backslash: \
1139+ </para>
1140+ <para>
1141+ Backtick: `
1142+ </para>
1143+ <para>
1144+ Asterisk: *
1145+ </para>
1146+ <para>
1147+ Underscore: _
1148+ </para>
1149+ <para>
1150+ Left brace: {
1151+ </para>
1152+ <para>
1153+ Right brace: }
1154+ </para>
1155+ <para>
1156+ Left bracket: [
1157+ </para>
1158+ <para>
1159+ Right bracket: ]
1160+ </para>
1161+ <para>
1162+ Left paren: (
1163+ </para>
1164+ <para>
1165+ Right paren: )
1166+ </para>
1167+ <para>
1168+ Greater-than: >
1169+ </para>
1170+ <para>
1171+ Hash: #
1172+ </para>
1173+ <para>
1174+ Period: .
1175+ </para>
1176+ <para>
1177+ Bang: !
1178+ </para>
1179+ <para>
1180+ Plus: +
1181+ </para>
1182+ <para>
1183+ Minus: -
1184+ </para>
1185+</section>
1186+<section id="links">
1187+ <title>Links</title>
1188+ <section id="explicit">
1189+ <title>Explicit</title>
1190+ <para>
1191+ Just a <ulink url="/url/">URL</ulink>.
1192+ </para>
1193+ <para>
1194+ <ulink url="/url/">URL and title</ulink>.
1195+ </para>
1196+ <para>
1197+ <ulink url="/url/">URL and title</ulink>.
1198+ </para>
1199+ <para>
1200+ <ulink url="/url/">URL and title</ulink>.
1201+ </para>
1202+ <para>
1203+ <ulink url="/url/">URL and title</ulink>
1204+ </para>
1205+ <para>
1206+ <ulink url="/url/">URL and title</ulink>
1207+ </para>
1208+ <para>
1209+ <ulink url="/url/with_underscore">with_underscore</ulink>
1210+ </para>
1211+ <para>
1212+ Email link (<email>nobody@nowhere.net</email>)
1213+ </para>
1214+ <para>
1215+ <ulink url="">Empty</ulink>.
1216+ </para>
1217+ </section>
1218+ <section id="reference">
1219+ <title>Reference</title>
1220+ <para>
1221+ Foo <ulink url="/url/">bar</ulink>.
1222+ </para>
1223+ <para>
1224+ Foo <ulink url="/url/">bar</ulink>.
1225+ </para>
1226+ <para>
1227+ Foo <ulink url="/url/">bar</ulink>.
1228+ </para>
1229+ <para>
1230+ With <ulink url="/url/">embedded [brackets]</ulink>.
1231+ </para>
1232+ <para>
1233+ <ulink url="/url/">b</ulink> by itself should be a link.
1234+ </para>
1235+ <para>
1236+ Indented <ulink url="/url">once</ulink>.
1237+ </para>
1238+ <para>
1239+ Indented <ulink url="/url">twice</ulink>.
1240+ </para>
1241+ <para>
1242+ Indented <ulink url="/url">thrice</ulink>.
1243+ </para>
1244+ <para>
1245+ This should [not][] be a link.
1246+ </para>
1247+ <programlisting>
1248+[not]: /url
1249+</programlisting>
1250+ <para>
1251+ Foo <ulink url="/url/">bar</ulink>.
1252+ </para>
1253+ <para>
1254+ Foo <ulink url="/url/">biz</ulink>.
1255+ </para>
1256+ </section>
1257+ <section id="with-ampersands">
1258+ <title>With ampersands</title>
1259+ <para>
1260+ Here’s a <ulink url="http://example.com/?foo=1&bar=2">link with an
1261+ ampersand in the URL</ulink>.
1262+ </para>
1263+ <para>
1264+ Here’s a link with an amersand in the link text:
1265+ <ulink url="http://att.com/">AT&T</ulink>.
1266+ </para>
1267+ <para>
1268+ Here’s an <ulink url="/script?foo=1&bar=2">inline link</ulink>.
1269+ </para>
1270+ <para>
1271+ Here’s an <ulink url="/script?foo=1&bar=2">inline link in pointy
1272+ braces</ulink>.
1273+ </para>
1274+ </section>
1275+ <section id="autolinks">
1276+ <title>Autolinks</title>
1277+ <para>
1278+ With an ampersand:
1279+ <ulink url="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ulink>
1280+ </para>
1281+ <itemizedlist spacing="compact">
1282+ <listitem>
1283+ <para>
1284+ In a list?
1285+ </para>
1286+ </listitem>
1287+ <listitem>
1288+ <para>
1289+ <ulink url="http://example.com/">http://example.com/</ulink>
1290+ </para>
1291+ </listitem>
1292+ <listitem>
1293+ <para>
1294+ It should.
1295+ </para>
1296+ </listitem>
1297+ </itemizedlist>
1298+ <para>
1299+ An e-mail address: <email>nobody@nowhere.net</email>
1300+ </para>
1301+ <blockquote>
1302+ <para>
1303+ Blockquoted:
1304+ <ulink url="http://example.com/">http://example.com/</ulink>
1305+ </para>
1306+ </blockquote>
1307+ <para>
1308+ Auto-links should not occur here:
1309+ <literal><http://example.com/></literal>
1310+ </para>
1311+ <programlisting>
1312+or here: <http://example.com/>
1313+</programlisting>
1314+ </section>
1315+</section>
1316+<section id="images">
1317+ <title>Images</title>
1318+ <para>
1319+ From <quote>Voyage dans la Lune</quote> by Georges Melies (1902):
1320+ </para>
1321+ <figure>
1322+ <title>lalune</title>
1323+ <mediaobject>
1324+ <imageobject>
1325+ <imagedata fileref="lalune.jpg" />
1326+ </imageobject>
1327+ <textobject><phrase>lalune</phrase></textobject>
1328+ </mediaobject>
1329+ </figure>
1330+ <para>
1331+ Here is a movie <inlinemediaobject>
1332+ <imageobject>
1333+ <imagedata fileref="movie.jpg" />
1334+ </imageobject>
1335+ </inlinemediaobject> icon.
1336+ </para>
1337+</section>
1338+<section id="footnotes">
1339+ <title>Footnotes</title>
1340+ <para>
1341+ Here is a footnote reference,<footnote>
1342+ <para>
1343+ Here is the footnote. It can go anywhere after the footnote reference.
1344+ It need not be placed at the end of the document.
1345+ </para>
1346+ </footnote> and another.<footnote>
1347+ <para>
1348+ Here’s the long note. This one contains multiple blocks.
1349+ </para>
1350+ <para>
1351+ Subsequent blocks are indented to show that they belong to the
1352+ footnote (as with list items).
1353+ </para>
1354+ <programlisting>
1355+ { <code> }
1356+</programlisting>
1357+ <para>
1358+ If you want, you can indent every line, but you can also be lazy and
1359+ just indent the first line of each block.
1360+ </para>
1361+ </footnote> This should <emphasis>not</emphasis> be a footnote reference,
1362+ because it contains a space.[^my note] Here is an inline note.<footnote>
1363+ <para>
1364+ This is <emphasis>easier</emphasis> to type. Inline notes may contain
1365+ <ulink url="http://google.com">links</ulink> and <literal>]</literal>
1366+ verbatim characters, as well as [bracketed text].
1367+ </para>
1368+ </footnote>
1369+ </para>
1370+ <blockquote>
1371+ <para>
1372+ Notes can go in quotes.<footnote>
1373+ <para>
1374+ In quote.
1375+ </para>
1376+ </footnote>
1377+ </para>
1378+ </blockquote>
1379+ <orderedlist numeration="arabic" spacing="compact">
1380+ <listitem>
1381+ <para>
1382+ And in list items.<footnote>
1383+ <para>
1384+ In list.
1385+ </para>
1386+ </footnote>
1387+ </para>
1388+ </listitem>
1389+ </orderedlist>
1390+ <para>
1391+ This paragraph should not be part of the note, as it is not indented.
1392+ </para>
1393+</section>
1394+</article>