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