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