git.iko.soy/typeable/pandoc
on rc/2.11.3.1 help sign in
typeable/pandoc/test/writer.jats_archiving
900 lines 27 kB history raw
1<?xml version="1.0" encoding="utf-8" ?>
2<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
3 "JATS-archivearticle1.dtd">
4<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
5<front>
6<journal-meta>
7<journal-id></journal-id>
8<journal-title-group>
9</journal-title-group>
10<issn></issn>
11<publisher>
12<publisher-name></publisher-name>
13</publisher>
14</journal-meta>
15<article-meta>
16<title-group>
17<article-title>Pandoc Test Suite</article-title>
18</title-group>
19<contrib-group>
20<contrib contrib-type="author">
21<string-name>John MacFarlane</string-name>
22</contrib>
23<contrib contrib-type="author">
24<string-name>Anonymous</string-name>
25</contrib>
26</contrib-group>
27<pub-date pub-type="epub" iso-8601-date="2006-07-17">
28<day>17</day>
29<month>7</month>
30<year>2006</year>
31</pub-date>
32</article-meta>
33</front>
34<body>
35<p>This is a set of tests for pandoc. Most of them are adapted from John
36Gruber’s markdown test suite.</p>
37<sec id="headers">
38 <title>Headers</title>
39 <sec id="level-2-with-an-embedded-link">
40 <title>Level 2 with an
41 <ext-link ext-link-type="uri" xlink:href="/url">embedded
42 link</ext-link></title>
43 <sec id="level-3-with-emphasis">
44 <title>Level 3 with <italic>emphasis</italic></title>
45 <sec id="level-4">
46 <title>Level 4</title>
47 <sec id="level-5">
48 <title>Level 5</title>
49 </sec>
50 </sec>
51 </sec>
52 </sec>
53</sec>
54<sec id="level-1">
55 <title>Level 1</title>
56 <sec id="level-2-with-emphasis">
57 <title>Level 2 with <italic>emphasis</italic></title>
58 <sec id="level-3">
59 <title>Level 3</title>
60 <p>with no blank line</p>
61 </sec>
62 </sec>
63 <sec id="level-2">
64 <title>Level 2</title>
65 <p>with no blank line</p>
66 </sec>
67</sec>
68<sec id="paragraphs">
69 <title>Paragraphs</title>
70 <p>Here’s a regular paragraph.</p>
71 <p>In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
72 item. Because a hard-wrapped line in the middle of a paragraph looked like a
73 list item.</p>
74 <p>Here’s one with a bullet. * criminey.</p>
75 <p>There should be a hard line break
76 here.</p>
77</sec>
78<sec id="block-quotes">
79 <title>Block Quotes</title>
80 <p>E-mail style:</p>
81 <disp-quote>
82 <p>This is a block quote. It is pretty short.</p>
83 </disp-quote>
84 <disp-quote>
85 <p>Code in a block quote:</p>
86 <preformat>sub status {
87 print &quot;working&quot;;
88}</preformat>
89 <p>A list:</p>
90 <list list-type="order">
91 <list-item>
92 <p>item one</p>
93 </list-item>
94 <list-item>
95 <p>item two</p>
96 </list-item>
97 </list>
98 <p>Nested block quotes:</p>
99 <disp-quote>
100 <p>nested</p>
101 </disp-quote>
102 <disp-quote>
103 <p>nested</p>
104 </disp-quote>
105 </disp-quote>
106 <p>This should not be a block quote: 2 &gt; 1.</p>
107 <p>And a following paragraph.</p>
108</sec>
109<sec id="code-blocks">
110 <title>Code Blocks</title>
111 <p>Code:</p>
112 <preformat>---- (should be four hyphens)
114sub status {
115 print &quot;working&quot;;
118this code block is indented by one tab</preformat>
119 <p>And:</p>
120 <preformat> this code block is indented by two tabs
122These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
123</sec>
124<sec id="lists">
125 <title>Lists</title>
126 <sec id="unordered">
127 <title>Unordered</title>
128 <p>Asterisks tight:</p>
129 <list list-type="bullet">
130 <list-item>
131 <p>asterisk 1</p>
132 </list-item>
133 <list-item>
134 <p>asterisk 2</p>
135 </list-item>
136 <list-item>
137 <p>asterisk 3</p>
138 </list-item>
139 </list>
140 <p>Asterisks loose:</p>
141 <list list-type="bullet">
142 <list-item>
143 <p>asterisk 1</p>
144 </list-item>
145 <list-item>
146 <p>asterisk 2</p>
147 </list-item>
148 <list-item>
149 <p>asterisk 3</p>
150 </list-item>
151 </list>
152 <p>Pluses tight:</p>
153 <list list-type="bullet">
154 <list-item>
155 <p>Plus 1</p>
156 </list-item>
157 <list-item>
158 <p>Plus 2</p>
159 </list-item>
160 <list-item>
161 <p>Plus 3</p>
162 </list-item>
163 </list>
164 <p>Pluses loose:</p>
165 <list list-type="bullet">
166 <list-item>
167 <p>Plus 1</p>
168 </list-item>
169 <list-item>
170 <p>Plus 2</p>
171 </list-item>
172 <list-item>
173 <p>Plus 3</p>
174 </list-item>
175 </list>
176 <p>Minuses tight:</p>
177 <list list-type="bullet">
178 <list-item>
179 <p>Minus 1</p>
180 </list-item>
181 <list-item>
182 <p>Minus 2</p>
183 </list-item>
184 <list-item>
185 <p>Minus 3</p>
186 </list-item>
187 </list>
188 <p>Minuses loose:</p>
189 <list list-type="bullet">
190 <list-item>
191 <p>Minus 1</p>
192 </list-item>
193 <list-item>
194 <p>Minus 2</p>
195 </list-item>
196 <list-item>
197 <p>Minus 3</p>
198 </list-item>
199 </list>
200 </sec>
201 <sec id="ordered">
202 <title>Ordered</title>
203 <p>Tight:</p>
204 <list list-type="order">
205 <list-item>
206 <p>First</p>
207 </list-item>
208 <list-item>
209 <p>Second</p>
210 </list-item>
211 <list-item>
212 <p>Third</p>
213 </list-item>
214 </list>
215 <p>and:</p>
216 <list list-type="order">
217 <list-item>
218 <p>One</p>
219 </list-item>
220 <list-item>
221 <p>Two</p>
222 </list-item>
223 <list-item>
224 <p>Three</p>
225 </list-item>
226 </list>
227 <p>Loose using tabs:</p>
228 <list list-type="order">
229 <list-item>
230 <p>First</p>
231 </list-item>
232 <list-item>
233 <p>Second</p>
234 </list-item>
235 <list-item>
236 <p>Third</p>
237 </list-item>
238 </list>
239 <p>and using spaces:</p>
240 <list list-type="order">
241 <list-item>
242 <p>One</p>
243 </list-item>
244 <list-item>
245 <p>Two</p>
246 </list-item>
247 <list-item>
248 <p>Three</p>
249 </list-item>
250 </list>
251 <p>Multiple paragraphs:</p>
252 <list list-type="order">
253 <list-item>
254 <p>Item 1, graf one.</p>
255 <p>Item 1. graf two. The quick brown fox jumped over the lazy dog’s
256 back.</p>
257 </list-item>
258 <list-item>
259 <p>Item 2.</p>
260 </list-item>
261 <list-item>
262 <p>Item 3.</p>
263 </list-item>
264 </list>
265 </sec>
266 <sec id="nested">
267 <title>Nested</title>
268 <list list-type="bullet">
269 <list-item>
270 <p>Tab</p>
271 <list list-type="bullet">
272 <list-item>
273 <p>Tab</p>
274 <list list-type="bullet">
275 <list-item>
276 <p>Tab</p>
277 </list-item>
278 </list>
279 </list-item>
280 </list>
281 </list-item>
282 </list>
283 <p>Here’s another:</p>
284 <list list-type="order">
285 <list-item>
286 <p>First</p>
287 </list-item>
288 <list-item>
289 <p>Second:</p>
290 <list list-type="bullet">
291 <list-item>
292 <p>Fee</p>
293 </list-item>
294 <list-item>
295 <p>Fie</p>
296 </list-item>
297 <list-item>
298 <p>Foe</p>
299 </list-item>
300 </list>
301 </list-item>
302 <list-item>
303 <p>Third</p>
304 </list-item>
305 </list>
306 <p>Same thing but with paragraphs:</p>
307 <list list-type="order">
308 <list-item>
309 <p>First</p>
310 </list-item>
311 <list-item>
312 <p>Second:</p>
313 <list list-type="bullet">
314 <list-item>
315 <p>Fee</p>
316 </list-item>
317 <list-item>
318 <p>Fie</p>
319 </list-item>
320 <list-item>
321 <p>Foe</p>
322 </list-item>
323 </list>
324 </list-item>
325 <list-item>
326 <p>Third</p>
327 </list-item>
328 </list>
329 </sec>
330 <sec id="tabs-and-spaces">
331 <title>Tabs and spaces</title>
332 <list list-type="bullet">
333 <list-item>
334 <p>this is a list item indented with tabs</p>
335 </list-item>
336 <list-item>
337 <p>this is a list item indented with spaces</p>
338 <list list-type="bullet">
339 <list-item>
340 <p>this is an example list item indented with tabs</p>
341 </list-item>
342 <list-item>
343 <p>this is an example list item indented with spaces</p>
344 </list-item>
345 </list>
346 </list-item>
347 </list>
348 </sec>
349 <sec id="fancy-list-markers">
350 <title>Fancy list markers</title>
351 <list list-type="order">
352 <list-item>
353 <label>(2)</label>
354 <p>begins with 2</p>
355 </list-item>
356 <list-item>
357 <label>(3)</label>
358 <p>and now 3</p>
359 <p>with a continuation</p>
360 <list list-type="roman-lower">
361 <list-item>
362 <label>iv.</label>
363 <p>sublist with roman numerals, starting with 4</p>
364 </list-item>
365 <list-item>
366 <label>v.</label>
367 <p>more items</p>
368 <list list-type="alpha-upper">
369 <list-item>
370 <label>(A)</label>
371 <p>a subsublist</p>
372 </list-item>
373 <list-item>
374 <label>(B)</label>
375 <p>a subsublist</p>
376 </list-item>
377 </list>
378 </list-item>
379 </list>
380 </list-item>
381 </list>
382 <p>Nesting:</p>
383 <list list-type="alpha-upper">
384 <list-item>
385 <p>Upper Alpha</p>
386 <list list-type="roman-upper">
387 <list-item>
388 <p>Upper Roman.</p>
389 <list list-type="order">
390 <list-item>
391 <label>(6)</label>
392 <p>Decimal start with 6</p>
393 <list list-type="alpha-lower">
394 <list-item>
395 <label>c)</label>
396 <p>Lower alpha with paren</p>
397 </list-item>
398 </list>
399 </list-item>
400 </list>
401 </list-item>
402 </list>
403 </list-item>
404 </list>
405 <p>Autonumbering:</p>
406 <list list-type="order">
407 <list-item>
408 <p>Autonumber.</p>
409 </list-item>
410 <list-item>
411 <p>More.</p>
412 <list list-type="order">
413 <list-item>
414 <p>Nested.</p>
415 </list-item>
416 </list>
417 </list-item>
418 </list>
419 <p>Should not be a list item:</p>
420 <p>M.A. 2007</p>
421 <p>B. Williams</p>
422 </sec>
423</sec>
424<sec id="definition-lists">
425 <title>Definition Lists</title>
426 <p>Tight using spaces:</p>
427 <def-list>
428 <def-item>
429 <term>apple</term>
430 <def>
431 <p>red fruit</p>
432 </def>
433 </def-item>
434 <def-item>
435 <term>orange</term>
436 <def>
437 <p>orange fruit</p>
438 </def>
439 </def-item>
440 <def-item>
441 <term>banana</term>
442 <def>
443 <p>yellow fruit</p>
444 </def>
445 </def-item>
446 </def-list>
447 <p>Tight using tabs:</p>
448 <def-list>
449 <def-item>
450 <term>apple</term>
451 <def>
452 <p>red fruit</p>
453 </def>
454 </def-item>
455 <def-item>
456 <term>orange</term>
457 <def>
458 <p>orange fruit</p>
459 </def>
460 </def-item>
461 <def-item>
462 <term>banana</term>
463 <def>
464 <p>yellow fruit</p>
465 </def>
466 </def-item>
467 </def-list>
468 <p>Loose:</p>
469 <def-list>
470 <def-item>
471 <term>apple</term>
472 <def>
473 <p>red fruit</p>
474 </def>
475 </def-item>
476 <def-item>
477 <term>orange</term>
478 <def>
479 <p>orange fruit</p>
480 </def>
481 </def-item>
482 <def-item>
483 <term>banana</term>
484 <def>
485 <p>yellow fruit</p>
486 </def>
487 </def-item>
488 </def-list>
489 <p>Multiple blocks with italics:</p>
490 <def-list>
491 <def-item>
492 <term><italic>apple</italic></term>
493 <def>
494 <p>red fruit</p>
495 <p>contains seeds, crisp, pleasant to taste</p>
496 </def>
497 </def-item>
498 <def-item>
499 <term><italic>orange</italic></term>
500 <def>
501 <p>orange fruit</p>
502 <p specific-use="wrapper">
503 <preformat>{ orange code block }</preformat>
504 </p>
505 <p specific-use="wrapper">
506 <disp-quote>
507 <p>orange block quote</p>
508 </disp-quote>
509 </p>
510 </def>
511 </def-item>
512 </def-list>
513 <p>Multiple definitions, tight:</p>
514 <def-list>
515 <def-item>
516 <term>apple</term>
517 <def>
518 <p>red fruit</p>
519 <p>computer</p>
520 </def>
521 </def-item>
522 <def-item>
523 <term>orange</term>
524 <def>
525 <p>orange fruit</p>
526 <p>bank</p>
527 </def>
528 </def-item>
529 </def-list>
530 <p>Multiple definitions, loose:</p>
531 <def-list>
532 <def-item>
533 <term>apple</term>
534 <def>
535 <p>red fruit</p>
536 <p>computer</p>
537 </def>
538 </def-item>
539 <def-item>
540 <term>orange</term>
541 <def>
542 <p>orange fruit</p>
543 <p>bank</p>
544 </def>
545 </def-item>
546 </def-list>
547 <p>Blank line after term, indented marker, alternate markers:</p>
548 <def-list>
549 <def-item>
550 <term>apple</term>
551 <def>
552 <p>red fruit</p>
553 <p>computer</p>
554 </def>
555 </def-item>
556 <def-item>
557 <term>orange</term>
558 <def>
559 <p>orange fruit</p>
560 <p specific-use="wrapper">
561 <list list-type="order">
562 <list-item>
563 <p>sublist</p>
564 </list-item>
565 <list-item>
566 <p>sublist</p>
567 </list-item>
568 </list>
569 </p>
570 </def>
571 </def-item>
572 </def-list>
573</sec>
574<sec id="html-blocks">
575 <title>HTML Blocks</title>
576 <p>Simple block on one line:</p>
577 <boxed-text>
578 <p>foo</p>
579 </boxed-text>
580 <p>And nested without indentation:</p>
581 <boxed-text>
582 <boxed-text>
583 <boxed-text>
584 <p>foo</p>
585 </boxed-text>
586 </boxed-text>
587 <boxed-text>
588 <p>bar</p>
589 </boxed-text>
590 </boxed-text>
591 <p>Interpreted markdown in a table:</p>
592 <p>This is <italic>emphasized</italic></p>
593 <p>And this is <bold>strong</bold></p>
594 <p>Here’s a simple block:</p>
595 <boxed-text>
596 <p>foo</p>
597 </boxed-text>
598 <p>This should be a code block, though:</p>
599 <preformat>&lt;div&gt;
600 foo
601&lt;/div&gt;</preformat>
602 <p>As should this:</p>
603 <preformat>&lt;div&gt;foo&lt;/div&gt;</preformat>
604 <p>Now, nested:</p>
605 <boxed-text>
606 <boxed-text>
607 <boxed-text>
608 <p>foo</p>
609 </boxed-text>
610 </boxed-text>
611 </boxed-text>
612 <p>This should just be an HTML comment:</p>
613 <p>Multiline:</p>
614 <p>Code block:</p>
615 <preformat>&lt;!-- Comment --&gt;</preformat>
616 <p>Just plain comment, with trailing spaces on the line:</p>
617 <p>Code:</p>
618 <preformat>&lt;hr /&gt;</preformat>
619 <p>Hr’s:</p>
620</sec>
621<sec id="inline-markup">
622 <title>Inline Markup</title>
623 <p>This is <italic>emphasized</italic>, and so <italic>is this</italic>.</p>
624 <p>This is <bold>strong</bold>, and so <bold>is this</bold>.</p>
625 <p>An <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
626 link</ext-link></italic>.</p>
627 <p><bold><italic>This is strong and em.</italic></bold></p>
628 <p>So is <bold><italic>this</italic></bold> word.</p>
629 <p><bold><italic>This is strong and em.</italic></bold></p>
630 <p>So is <bold><italic>this</italic></bold> word.</p>
631 <p>This is code: <monospace>&gt;</monospace>, <monospace>$</monospace>,
632 <monospace>\</monospace>, <monospace>\$</monospace>,
633 <monospace>&lt;html&gt;</monospace>.</p>
634 <p><strike>This is <italic>strikeout</italic>.</strike></p>
635 <p>Superscripts: a<sup>bc</sup>d a<sup><italic>hello</italic></sup>
636 a<sup>hello there</sup>.</p>
637 <p>Subscripts: H<sub>2</sub>O, H<sub>23</sub>O,
638 H<sub>many of them</sub>O.</p>
639 <p>These should not be superscripts or subscripts, because of the unescaped
640 spaces: a^b c^d, a~b c~d.</p>
641</sec>
642<sec id="smart-quotes-ellipses-dashes">
643 <title>Smart quotes, ellipses, dashes</title>
644 <p>“Hello,” said the spider. “‘Shelob’ is my name.”</p>
645 <p>‘A’, ‘B’, and ‘C’ are letters.</p>
646 <p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
647 <p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
648 <p>Here is some quoted ‘<monospace>code</monospace>’ and a
649 “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&amp;bar=2">quoted
650 link</ext-link>”.</p>
651 <p>Some dashes: one—two — three—four — five.</p>
652 <p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
653 <p>Ellipses…and…and….</p>
654</sec>
655<sec id="latex">
656 <title>LaTeX</title>
657 <list list-type="bullet">
658 <list-item>
659 <p></p>
660 </list-item>
661 <list-item>
662 <p><inline-formula><alternatives>
663 <tex-math><![CDATA[2+2=4]]></tex-math>
664 <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></p>
665 </list-item>
666 <list-item>
667 <p><inline-formula><alternatives>
668 <tex-math><![CDATA[x \in y]]></tex-math>
669 <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></p>
670 </list-item>
671 <list-item>
672 <p><inline-formula><alternatives>
673 <tex-math><![CDATA[\alpha \wedge \omega]]></tex-math>
674 <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></p>
675 </list-item>
676 <list-item>
677 <p><inline-formula><alternatives>
678 <tex-math><![CDATA[223]]></tex-math>
679 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>223</mml:mn></mml:math></alternatives></inline-formula></p>
680 </list-item>
681 <list-item>
682 <p><inline-formula><alternatives>
683 <tex-math><![CDATA[p]]></tex-math>
684 <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>p</mml:mi></mml:math></alternatives></inline-formula>-Tree</p>
685 </list-item>
686 <list-item>
687 <p>Here’s some display math: <disp-formula><alternatives>
688 <tex-math><![CDATA[\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}]]></tex-math>
689 <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></p>
690 </list-item>
691 <list-item>
692 <p>Here’s one that has a line break in it:
693 <inline-formula><alternatives>
694 <tex-math><![CDATA[\alpha + \omega \times x^2]]></tex-math>
695 <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>.</p>
696 </list-item>
697 </list>
698 <p>These shouldn’t be math:</p>
699 <list list-type="bullet">
700 <list-item>
701 <p>To get the famous equation, write
702 <monospace>$e = mc^2$</monospace>.</p>
703 </list-item>
704 <list-item>
705 <p>$22,000 is a <italic>lot</italic> of money. So is $34,000. (It worked
706 if “lot” is emphasized.)</p>
707 </list-item>
708 <list-item>
709 <p>Shoes ($20) and socks ($5).</p>
710 </list-item>
711 <list-item>
712 <p>Escaped <monospace>$</monospace>: $73 <italic>this should be
713 emphasized</italic> 23$.</p>
714 </list-item>
715 </list>
716 <p>Here’s a LaTeX table:</p>
717</sec>
718<sec id="special-characters">
719 <title>Special Characters</title>
720 <p>Here is some unicode:</p>
721 <list list-type="bullet">
722 <list-item>
723 <p>I hat: Î</p>
724 </list-item>
725 <list-item>
726 <p>o umlaut: ö</p>
727 </list-item>
728 <list-item>
729 <p>section: §</p>
730 </list-item>
731 <list-item>
732 <p>set membership: ∈</p>
733 </list-item>
734 <list-item>
735 <p>copyright: ©</p>
736 </list-item>
737 </list>
738 <p>AT&amp;T has an ampersand in their name.</p>
739 <p>AT&amp;T is another way to write it.</p>
740 <p>This &amp; that.</p>
741 <p>4 &lt; 5.</p>
742 <p>6 &gt; 5.</p>
743 <p>Backslash: \</p>
744 <p>Backtick: `</p>
745 <p>Asterisk: *</p>
746 <p>Underscore: _</p>
747 <p>Left brace: {</p>
748 <p>Right brace: }</p>
749 <p>Left bracket: [</p>
750 <p>Right bracket: ]</p>
751 <p>Left paren: (</p>
752 <p>Right paren: )</p>
753 <p>Greater-than: &gt;</p>
754 <p>Hash: #</p>
755 <p>Period: .</p>
756 <p>Bang: !</p>
757 <p>Plus: +</p>
758 <p>Minus: -</p>
759</sec>
760<sec id="links">
761 <title>Links</title>
762 <sec id="explicit">
763 <title>Explicit</title>
764 <p>Just a
765 <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.</p>
766 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
767 and title</ext-link>.</p>
768 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by two spaces">URL
769 and title</ext-link>.</p>
770 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title preceded by a tab">URL
771 and title</ext-link>.</p>
772 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with &quot;quotes&quot; in it">URL
773 and title</ext-link></p>
774 <p><ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
775 and title</ext-link></p>
776 <p><ext-link ext-link-type="uri" xlink:href="/url/with_underscore">with_underscore</ext-link></p>
777 <p><ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
778 link</ext-link></p>
779 <p><ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.</p>
780 </sec>
781 <sec id="reference">
782 <title>Reference</title>
783 <p>Foo
784 <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.</p>
785 <p>With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
786 [brackets]</ext-link>.</p>
787 <p><ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by itself
788 should be a link.</p>
789 <p>Indented
790 <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.</p>
791 <p>Indented
792 <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.</p>
793 <p>Indented
794 <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.</p>
795 <p>This should [not][] be a link.</p>
796 <preformat>[not]: /url</preformat>
797 <p>Foo
798 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with &quot;quotes&quot; inside">bar</ext-link>.</p>
799 <p>Foo
800 <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with &quot;quote&quot; inside">biz</ext-link>.</p>
801 </sec>
802 <sec id="with-ampersands">
803 <title>With ampersands</title>
804 <p>Here’s a
805 <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&amp;bar=2">link
806 with an ampersand in the URL</ext-link>.</p>
807 <p>Here’s a link with an amersand in the link text:
808 <ext-link ext-link-type="uri" xlink:href="http://att.com/" xlink:title="AT&amp;T">AT&amp;T</ext-link>.</p>
809 <p>Here’s an
810 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&amp;bar=2">inline
811 link</ext-link>.</p>
812 <p>Here’s an
813 <ext-link ext-link-type="uri" xlink:href="/script?foo=1&amp;bar=2">inline
814 link in pointy braces</ext-link>.</p>
815 </sec>
816 <sec id="autolinks">
817 <title>Autolinks</title>
818 <p>With an ampersand:
819 <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></p>
820 <list list-type="bullet">
821 <list-item>
822 <p>In a list?</p>
823 </list-item>
824 <list-item>
825 <p><ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
826 </list-item>
827 <list-item>
828 <p>It should.</p>
829 </list-item>
830 </list>
831 <p>An e-mail address: <email>nobody@nowhere.net</email></p>
832 <disp-quote>
833 <p>Blockquoted:
834 <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
835 </disp-quote>
836 <p>Auto-links should not occur here:
837 <monospace>&lt;http://example.com/&gt;</monospace></p>
838 <preformat>or here: &lt;http://example.com/&gt;</preformat>
839 </sec>
840</sec>
841<sec id="images">
842 <title>Images</title>
843 <p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
844 <fig>
845 <caption><p>lalune</p></caption>
846 <graphic mimetype="image" mime-subtype="jpeg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" />
847 </fig>
848 <p>Here is a movie
849 <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
850 icon.</p>
851</sec>
852<sec id="footnotes">
853 <title>Footnotes</title>
854 <p>Here is a footnote reference,<xref ref-type="fn" rid="fn1">1</xref> and
855 another.<xref ref-type="fn" rid="fn2">2</xref> This should
856 <italic>not</italic> be a footnote reference, because it contains a
857 space.[^my note] Here is an inline
858 note.<xref ref-type="fn" rid="fn3">3</xref></p>
859 <disp-quote>
860 <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
861 </disp-quote>
862 <list list-type="order">
863 <list-item>
864 <p>And in list items.<xref ref-type="fn" rid="fn5">5</xref></p>
865 </list-item>
866 </list>
867 <p>This paragraph should not be part of the note, as it is not indented.</p>
868</sec>
869</body>
870<back>
871<fn-group>
872 <fn id="fn1">
873 <p>Here is the footnote. It can go anywhere after the footnote reference.
874 It need not be placed at the end of the document.</p>
875 </fn>
876 <fn id="fn2">
877 <p>Here’s the long note. This one contains multiple blocks.</p>
878 <p>Subsequent blocks are indented to show that they belong to the footnote
879 (as with list items).</p>
880 <p specific-use="wrapper">
881 <preformat> { &lt;code&gt; }</preformat>
882 </p>
883 <p>If you want, you can indent every line, but you can also be lazy and
884 just indent the first line of each block.</p>
885 </fn>
886 <fn id="fn3">
887 <p>This is <italic>easier</italic> to type. Inline notes may contain
888 <ext-link ext-link-type="uri" xlink:href="http://google.com">links</ext-link>
889 and <monospace>]</monospace> verbatim characters, as well as [bracketed
890 text].</p>
891 </fn>
892 <fn id="fn4">
893 <p>In quote.</p>
894 </fn>
895 <fn id="fn5">
896 <p>In list.</p>
897 </fn>
898</fn-group>
899</back>
900</article>