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