git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #2890 from bcdevices/docbook5-writer

Docbook5 write support

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