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