@@ -20,1423 +20,1421 @@
20</article-meta>
20</article-meta>
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.
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>
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>
49− <title>Level 3</title>
55− <sec id="level-2">
48+ <sec id="level-3">
56− <title>Level 2</title>
49+ <title>Level 3</title>
58 with no blank line
51 with no blank line
62− <sec id="paragraphs">
55+ <sec id="level-2">
63− <title>Paragraphs</title>
56+ <title>Level 2</title>
65− Here’s a regular paragraph.
58+ with no blank line
63+ <title>Paragraphs</title>
65+ Here’s a regular paragraph.
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
73+ Here’s one with a bullet. * criminey.
76+ There should be a hard line break<break />here.
79+<sec id="block-quotes">
80+ <title>Block Quotes</title>
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
73− Here’s one with a bullet. * criminey.
91+ Code in a block quote:
93+ <preformat>sub status {
94+ print "working";
76− There should be a hard line break<break />here.
97+ A list:
78− </sec>
99+ <list list-type="order">
79− <sec id="block-quotes">
100+ <list-item>
80− <title>Block Quotes</title>
101+ <p>
82− E-mail style:
112+ Nested block quotes:
84 <disp-quote>
114 <disp-quote>
86− This is a block quote. It is pretty short.
116+ nested
88 </disp-quote>
118 </disp-quote>
89 <disp-quote>
119 <disp-quote>
91− Code in a block quote:
121+ nested
93− <preformat>sub status {
94− print "working";
99− <list list-type="order">
112− Nested block quotes:
124 </disp-quote>
123 </disp-quote>
126− This should not be a block quote: 2 > 1.
126+ This should not be a block quote: 2 > 1.
129− And a following paragraph.
129+ And a following paragraph.
132− <sec id="code-blocks">
132+<sec id="code-blocks">
133− <title>Code Blocks</title>
133+ <title>Code Blocks</title>
137− <preformat>---- (should be four hyphens)
137+ <preformat>---- (should be four hyphens)
139sub status {
139sub status {
140 print "working";
140 print "working";
143this code block is indented by one tab</preformat>
143this code block is indented by one tab</preformat>
147− <preformat> this code block is indented by two tabs
147+ <preformat> this code block is indented by two tabs
149These should not be escaped: \$ \\ \> \[ \{</preformat>
149These should not be escaped: \$ \\ \> \[ \{</preformat>
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>
158− <list list-type="bullet">
178− <list list-type="bullet">
198− <list list-type="bullet">
218− <list list-type="bullet">
238− <list list-type="bullet">
258− <list list-type="bullet">
277− <title>Ordered</title>
281− <list list-type="order">
301− <list list-type="order">
321− <list list-type="order">
341− <list list-type="order">
359− Multiple paragraphs:
361− <list list-type="order">
367− Item 1. graf two. The quick brown fox jumped over the lazy dog’s
384− <title>Nested</title>
385− <list list-type="bullet">
390− <list list-type="bullet">
395− <list list-type="bullet">
409− <list list-type="order">
419− <list list-type="bullet">
444− Same thing but with paragraphs:
446− <list list-type="order">
456− <list list-type="bullet">
481− <sec id="tabs-and-spaces">
482− <title>Tabs and spaces</title>
483− <list list-type="bullet">
486− this is a list item indented with tabs
491− this is a list item indented with spaces
493− <list list-type="bullet">
496− this is an example list item indented with tabs
501− this is an example list item indented with spaces
508− <sec id="fancy-list-markers">
509− <title>Fancy list markers</title>
510− <list list-type="order">
529− <list list-type="roman-lower">
535− sublist with roman numerals, starting with 4
545− <list list-type="alpha-upper">
570− <list list-type="alpha-upper">
575− <list list-type="roman-upper">
580− <list list-type="order">
586− Decimal start with 6
588− <list list-type="alpha-lower">
594− Lower alpha with paren
607− <list list-type="order">
617− <list list-type="order">
627− Should not be a list item:
637− <sec id="definition-lists">
638− <title>Definition Lists</title>
675− Tight using tabs:
156+ Asterisks tight:
677− <def-list>
158+ <list list-type="bullet">
678− <def-item>
159+ <list-item>
684− red fruit
161+ asterisk 1
687− </def-item>
163+ </list-item>
688− <def-item>
164+ <list-item>
694− orange fruit
166+ asterisk 2
697− </def-item>
168+ </list-item>
698− <def-item>
169+ <list-item>
700− banana
171+ asterisk 3
707− </def-item>
173+ </list-item>
708− </def-list>
174+ </list>
710− Loose:
176+ Asterisks loose:
712− <def-list>
178+ <list list-type="bullet">
713− <def-item>
179+ <list-item>
719− red fruit
181+ asterisk 1
722− </def-item>
183+ </list-item>
723− <def-item>
184+ <list-item>
729− orange fruit
186+ asterisk 2
732− </def-item>
188+ </list-item>
733− <def-item>
189+ <list-item>
735− banana
191+ asterisk 3
742− </def-item>
193+ </list-item>
743− </def-list>
194+ </list>
745− Multiple blocks with italics:
196+ Pluses tight:
747− <def-list>
198+ <list list-type="bullet">
748− <def-item>
199+ <list-item>
750− <italic>apple</italic>
757− contains seeds, crisp, pleasant to taste
760− </def-item>
203+ </list-item>
761− <def-item>
204+ <list-item>
763− <italic>orange</italic>
206+ Plus 2
767− orange fruit
208+ </list-item>
768− </p>
209+ <list-item>
769− <preformat>{ orange code block }</preformat>
772− orange block quote
211+ Plus 3
776− </def-item>
213+ </list-item>
777− </def-list>
214+ </list>
779− Multiple definitions, tight:
216+ Pluses loose:
781− <def-list>
218+ <list list-type="bullet">
782− <def-item>
219+ <list-item>
794− </def-item>
223+ </list-item>
795− <def-item>
224+ <list-item>
799− <def>
228+ </list-item>
807− </def-item>
233+ </list-item>
808− </def-list>
234+ </list>
810− Multiple definitions, loose:
236+ Minuses tight:
812− <def-list>
238+ <list list-type="bullet">
813− <def-item>
239+ <list-item>
825− </def-item>
243+ </list-item>
826− <def-item>
244+ <list-item>
830− <def>
248+ </list-item>
838− </def-item>
253+ </list-item>
839− </def-list>
254+ </list>
841− Blank line after term, indented marker, alternate markers:
256+ Minuses loose:
865− <list list-type="order">
258+ <list list-type="bullet">
866− <list-item>
259+ <list-item>
870− </list-item>
263+ </list-item>
871− <list-item>
264+ <list-item>
875− </list-item>
268+ </list-item>
876− </list>
269+ <list-item>
878− </def-item>
273+ </list-item>
879− </def-list>
274+ </list>
881− <sec id="html-blocks">
276+ <sec id="ordered">
882− <title>HTML Blocks</title>
277+ <title>Ordered</title>
884− Simple block on one line:
279+ Tight:
886− <boxed-text>
281+ <list list-type="order">
890− </boxed-text>
296+ </list-item>
892− And nested without indentation:
299+ and:
894− <boxed-text>
301+ <list list-type="order">
895− <boxed-text>
302+ <list-item>
906− </boxed-text>
306+ </list-item>
907− </boxed-text>
307+ <list-item>
321+ <list list-type="order">
341+ <list list-type="order">
359+ Multiple paragraphs:
361+ <list list-type="order">
367+ Item 1. graf two. The quick brown fox jumped over the lazy dog’s
384+ <title>Nested</title>
385+ <list list-type="bullet">
390+ <list list-type="bullet">
395+ <list list-type="bullet">
409+ <list list-type="order">
419+ <list list-type="bullet">
444+ Same thing but with paragraphs:
446+ <list list-type="order">
456+ <list list-type="bullet">
481+ <sec id="tabs-and-spaces">
482+ <title>Tabs and spaces</title>
483+ <list list-type="bullet">
486+ this is a list item indented with tabs
491+ this is a list item indented with spaces
493+ <list list-type="bullet">
496+ this is an example list item indented with tabs
501+ this is an example list item indented with spaces
508+ <sec id="fancy-list-markers">
509+ <title>Fancy list markers</title>
510+ <list list-type="order">
529+ <list list-type="roman-lower">
535+ sublist with roman numerals, starting with 4
545+ <list list-type="alpha-upper">
909− Interpreted markdown in a table:
568+ Nesting:
570+ <list list-type="alpha-upper">
575+ <list list-type="roman-upper">
580+ <list list-type="order">
586+ Decimal start with 6
588+ <list list-type="alpha-lower">
594+ Lower alpha with paren
912− This is <italic>emphasized</italic>
605+ Autonumbering:
607+ <list list-type="order">
617+ <list list-type="order">
627+ Should not be a list item:
915− And this is <bold role="strong">strong</bold>
630+ M.A. 2007
918− Here’s a simple block:
633+ B. Williams
637+<sec id="definition-lists">
638+ <title>Definition Lists</title>
745+ Multiple blocks with italics:
750+ <italic>apple</italic>
757+ contains seeds, crisp, pleasant to taste
763+ <italic>orange</italic>
769+ <preformat>{ orange code block }</preformat>
779+ Multiple definitions, tight:
810+ Multiple definitions, loose:
841+ Blank line after term, indented marker, alternate markers:
865+ <list list-type="order">
881+<sec id="html-blocks">
882+ <title>HTML Blocks</title>
884+ Simple block on one line:
892+ And nested without indentation:
920 <boxed-text>
902 <boxed-text>
924 </boxed-text>
906 </boxed-text>
909+ Interpreted markdown in a table:
912+ This is <italic>emphasized</italic>
915+ And this is <bold role="strong">strong</bold>
918+ Here’s a simple block:
926+ This should be a code block, though:
928+ <preformat><div>
930+</div></preformat>
934+ <preformat><div>foo</div></preformat>
948+ This should just be an HTML comment:
956+ <preformat><!-- Comment --></preformat>
958+ Just plain comment, with trailing spaces on the line:
963+ <preformat><hr /></preformat>
968+<sec id="inline-markup">
969+ <title>Inline Markup</title>
971+ This is <italic>emphasized</italic>, and so <italic>is this</italic>.
974+ This is <bold role="strong">strong</bold>, and so <bold role="strong">is
978+ An <italic><ext-link ext-link-type="uri" xlink:href="/url">emphasized
979+ link</ext-link></italic>.
982+ <bold role="strong"><italic>This is strong and em.</italic></bold>
985+ So is <bold role="strong"><italic>this</italic></bold> word.
988+ <bold role="strong"><italic>This is strong and em.</italic></bold>
991+ So is <bold role="strong"><italic>this</italic></bold> word.
994+ This is code: <monospace>></monospace>, <monospace>$</monospace>,
995+ <monospace>\</monospace>, <monospace>\$</monospace>,
996+ <monospace><html></monospace>.
999+ <strike>This is <italic>strikeout</italic>.</strike>
1002+ Superscripts: a<sup>bc</sup>d a<sup><italic>hello</italic></sup>
1003+ a<sup>hello there</sup>.
1006+ Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
1009+ These should not be superscripts or subscripts, because of the unescaped
1010+ spaces: a^b c^d, a~b c~d.
1013+<sec id="smart-quotes-ellipses-dashes">
1014+ <title>Smart quotes, ellipses, dashes</title>
1016+ “Hello,” said the spider. “‘Shelob’ is my name.”
1019+ ‘A’, ‘B’, and ‘C’ are letters.
1022+ ‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
1025+ ‘He said, “I want to go.”’ Were you alive in the 70’s?
1028+ Here is some quoted ‘<monospace>code</monospace>’ and a
1029+ “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">quoted
1033+ Some dashes: one—two — three—four — five.
1036+ Dashes between numbers: 5–7, 255–66, 1987–1999.
1043+ <title>LaTeX</title>
1044+ <list list-type="bullet">
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>
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>
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>
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>
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
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>
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>.
1100+ These shouldn’t be math:
1102+ <list list-type="bullet">
1105+ To get the famous equation, write <monospace>$e = mc^2$</monospace>.
1110+ $22,000 is a <italic>lot</italic> of money. So is $34,000. (It worked
1111+ if “lot” is emphasized.)
1116+ Shoes ($20) and socks ($5).
1121+ Escaped <monospace>$</monospace>: $73 <italic>this should be
1122+ emphasized</italic> 23$.
1127+ Here’s a LaTeX table:
1130+<sec id="special-characters">
1131+ <title>Special Characters</title>
1133+ Here is some unicode:
1135+ <list list-type="bullet">
1163+ AT&T has an ampersand in their name.
1166+ AT&T is another way to write it.
1227+ <title>Links</title>
1228+ <sec id="explicit">
1229+ <title>Explicit</title>
926− This should be a code block, though:
1231+ Just a <ext-link ext-link-type="uri" xlink:href="/url/">URL</ext-link>.
928− <preformat><div>
930−</div></preformat>
932− As should this:
1234+ <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title">URL
1235+ and title</ext-link>.
934− <preformat><div>foo</div></preformat>
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>.
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>.
951− Multiline:
1246+ <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with "quotes" in it">URL
1247+ and title</ext-link>
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>
956− <preformat><!-- Comment --></preformat>
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>
961− Code:
1257+ <ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
963− <preformat><hr /></preformat>
965− Hr’s:
1261+ <ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.
968− <sec id="inline-markup">
1264+ <sec id="reference">
969− <title>Inline Markup</title>
1265+ <title>Reference</title>
971− This is <italic>emphasized</italic>, and so <italic>is this</italic>.
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>.
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>.
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>.
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>.
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
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>.
994− This is code: <monospace>></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><html></monospace>.
999− <strike>This is <italic>strikeout</italic>.</strike>
1292+ Indented
1293+ <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.
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>.
1298+ <preformat>[not]: /url</preformat>
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 "quotes" inside">bar</ext-link>.
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 "quote" inside">biz</ext-link>.
1013− <sec id="smart-quotes-ellipses-dashes">
1308+ <sec id="with-ampersands">
1014− <title>Smart quotes, ellipses, dashes</title>
1309+ <title>With ampersands</title>
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&bar=2">link
1313+ with an ampersand in the URL</ext-link>.
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&T">AT&T</ext-link>.
1022− ‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
1320+ Here’s an
1025− ‘He said, “I want to go.”’ Were you alive in the 70’s?
1028− Here is some quoted ‘<monospace>code</monospace>’ and a
1029− “<ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">quoted
1321+ <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
1030− link</ext-link>”.
1322+ link</ext-link>.
1033− Some dashes: one—two — three—four — five.
1036− Dashes between numbers: 5–7, 255–66, 1987–1999.
1043− <title>LaTeX</title>
1044− <list list-type="bullet">
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>
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>
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>
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>
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
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>
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>.
1101− These shouldn’t be math:
1103− <list list-type="bullet">
1106− To get the famous equation, write <monospace>$e = mc^2$</monospace>.
1111− $22,000 is a <italic>lot</italic> of money. So is $34,000. (It
1112− worked if “lot” is emphasized.)
1117− Shoes ($20) and socks ($5).
1122− Escaped <monospace>$</monospace>: $73 <italic>this should be
1123− emphasized</italic> 23$.
1128− Here’s a LaTeX table:
1325+ Here’s an
1326+ <ext-link ext-link-type="uri" xlink:href="/script?foo=1&bar=2">inline
1327+ link in pointy braces</ext-link>.
1131− <sec id="special-characters">
1330+ <sec id="autolinks">
1132− <title>Special Characters</title>
1331+ <title>Autolinks</title>
1134− Here is some unicode:
1333+ With an ampersand:
1334+ <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">http://example.com/?foo=1&bar=2</ext-link>
1136 <list list-type="bullet">
1336 <list list-type="bullet">
1137 <list-item>
1337 <list-item>
1141− </list-item>
1339+ In a list?
1151 </list-item>
1341 </list-item>
1152 <list-item>
1342 <list-item>
1154− set membership: ∈
1344+ <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link>
1156 </list-item>
1346 </list-item>
1157 <list-item>
1347 <list-item>
1159− copyright: ©
1349+ It should.
1161 </list-item>
1351 </list-item>
1164− AT&T has an ampersand in their name.
1354+ An e-mail address: <email>nobody@nowhere.net</email>
1167− AT&T is another way to write it.
1359+ <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link>
1224− Minus: -
1363+ Auto-links should not occur here:
1364+ <monospace><http://example.com/></monospace>
1366+ <preformat>or here: <http://example.com/></preformat>
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>
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>
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>
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" />
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>
1248− <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with "quotes" in it">URL
1249− and title</ext-link>
1252− <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="title with single quotes">URL
1253− and title</ext-link>
1256− <ext-link ext-link-type="uri" xlink:href="/url/with_underscore">with_underscore</ext-link>
1259− <ext-link ext-link-type="uri" xlink:href="mailto:nobody@nowhere.net">Email
1263− <ext-link ext-link-type="uri" xlink:href="">Empty</ext-link>.
1266− <sec id="reference">
1387+ Here is a footnote reference,<fn>
1267− <title>Reference</title>
1269− Foo <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.
1272− Foo <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.
1275− Foo <ext-link ext-link-type="uri" xlink:href="/url/">bar</ext-link>.
1278− With <ext-link ext-link-type="uri" xlink:href="/url/">embedded
1279− [brackets]</ext-link>.
1282− <ext-link ext-link-type="uri" xlink:href="/url/">b</ext-link> by
1283− itself should be a link.
1287− <ext-link ext-link-type="uri" xlink:href="/url">once</ext-link>.
1291− <ext-link ext-link-type="uri" xlink:href="/url">twice</ext-link>.
1295− <ext-link ext-link-type="uri" xlink:href="/url">thrice</ext-link>.
1298− This should [not][] be a link.
1300− <preformat>[not]: /url</preformat>
1303− <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quotes" inside">bar</ext-link>.
1307− <ext-link ext-link-type="uri" xlink:href="/url/" xlink:title="Title with "quote" inside">biz</ext-link>.
1310− <sec id="with-ampersands">
1311− <title>With ampersands</title>
1314− <ext-link ext-link-type="uri" xlink:href="http://example.com/?foo=1&bar=2">link
1315− with an ampersand in the URL</ext-link>.
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&T">AT&T</ext-link>.
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&bar=2">inline
1390+ It need not be placed at the end of the document.
1392+ </fn> and another.<fn>
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&bar=2">inline
1329− link in pointy braces</ext-link>.
1332− <sec id="autolinks">
1333− <title>Autolinks</title>
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&bar=2">http://example.com/?foo=1&bar=2</ext-link>
1398+ footnote (as with list items).
1338− <list list-type="bullet">
1400+ <preformat> { <code> }</preformat>
1346− <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link>
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.
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>
1361− <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link>
1365− Auto-links should not occur here:
1408+ This is <italic>easier</italic> to type. Inline notes may contain
1366− <monospace><http://example.com/></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
1368− <preformat>or here: <http://example.com/></preformat>
1413+ </fn>
1372− <title>Images</title>
1374− From “Voyage dans la Lune” by Georges Melies (1902):
1415+ <disp-quote>
1377− <caption>lalune</caption>
1378− <graphic mimetype="image" mime-subtype="peg" xlink:href="lalune.jpg" xlink:title="Voyage dans la Lune" />
1382− <inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="movie.jpg" />
1386− <sec id="footnotes">
1387− <title>Footnotes</title>
1389− Here is a footnote reference,<fn>
1417+ Notes can go in quotes.<fn>
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.
1394− </fn> and another.<fn>
1396− Here’s the long note. This one contains multiple blocks.
1399− Subsequent blocks are indented to show that they belong to the
1400− footnote (as with list items).
1402− <preformat> { <code> }</preformat>
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.
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>
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
1417− <disp-quote>
1423+ </disp-quote>
1424+ <list list-type="order">
1419− Notes can go in quotes.<fn>
1427+ And in list items.<fn>
1421− In quote.
1429+ In list.
1426− <list list-type="order">
1427− <list-item>
1433+ </list-item>
1429− And in list items.<fn>
1436− </list>
1434+ </list>
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.
1442</article>
1440</article>