@@ -33,11 +33,15 @@
3333</title>
3434<section>
3535<title>
36−<p>Level 2 with an embedded link </url></p>
36+<p>Level 2 with an embedded link<a l:href="#l1" type="note">
37+<sup>[1]</sup>
38+</a>
39+</p>
3740</title>
3841<section>
3942<title>
40−<p>Level 3 with emphasis</p>
43+<p>Level 3 with <emphasis>emphasis</emphasis>
44+</p>
4145</title>
4246<section>
4347<title>
@@ -58,7 +62,8 @@
5862</title>
5963<section>
6064<title>
61−<p>Level 2 with emphasis</p>
65+<p>Level 2 with <emphasis>emphasis</emphasis>
66+</p>
6267</title>
6368<section>
6469<title>
@@ -485,8 +490,8 @@
485490</title>
486491<p>This is <emphasis>emphasized</emphasis>, and so <emphasis>is this</emphasis>.</p>
487492<p>This is <strong>strong</strong>, and so <strong>is this</strong>.</p>
488−<p>An <emphasis>emphasized link<a l:href="#l1" type="note">
489−<sup>[1]</sup>
493+<p>An <emphasis>emphasized link<a l:href="#l2" type="note">
494+<sup>[2]</sup>
490495</a>
491496</emphasis>.</p>
492497<p>
@@ -526,8 +531,8 @@
526531<p>‘A’, ‘B’, and ‘C’ are letters.</p>
527532<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’</p>
528533<p>‘He said, “I want to go.”’ Were you alive in the 70’s?</p>
529−<p>Here is some quoted ‘<code>code</code>’ and a “quoted link<a l:href="#l2" type="note">
530−<sup>[2]</sup>
534+<p>Here is some quoted ‘<code>code</code>’ and a “quoted link<a l:href="#l3" type="note">
535+<sup>[3]</sup>
531536</a>”.</p>
532537<p>Some dashes: one—two — three—four — five.</p>
533538<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
@@ -606,10 +611,7 @@
606611<title>
607612<p>Explicit</p>
608613</title>
609−<p>Just a URL<a l:href="#l3" type="note">
610−<sup>[3]</sup>
611−</a>.</p>
612−<p>URL and title<a l:href="#l4" type="note">
614+<p>Just a URL<a l:href="#l4" type="note">
613615<sup>[4]</sup>
614616</a>.</p>
615617<p>URL and title<a l:href="#l5" type="note">
@@ -620,97 +622,100 @@
620622</a>.</p>
621623<p>URL and title<a l:href="#l7" type="note">
622624<sup>[7]</sup>
623−</a>
624−</p>
625+</a>.</p>
625626<p>URL and title<a l:href="#l8" type="note">
626627<sup>[8]</sup>
627628</a>
628629</p>
629−<p>with_underscore<a l:href="#l9" type="note">
630+<p>URL and title<a l:href="#l9" type="note">
630631<sup>[9]</sup>
631632</a>
632633</p>
633−<p>Email link<a l:href="#l10" type="note">
634+<p>with_underscore<a l:href="#l10" type="note">
634635<sup>[10]</sup>
635636</a>
636637</p>
637−<p>Empty<a l:href="#l11" type="note">
638+<p>Email link<a l:href="#l11" type="note">
638639<sup>[11]</sup>
640+</a>
641+</p>
642+<p>Empty<a l:href="#l12" type="note">
643+<sup>[12]</sup>
639644</a>.</p>
640645</section>
641646<section>
642647<title>
643648<p>Reference</p>
644649</title>
645−<p>Foo bar<a l:href="#l12" type="note">
646−<sup>[12]</sup>
647−</a>.</p>
648−<p>With embedded [brackets]<a l:href="#l13" type="note">
650+<p>Foo bar<a l:href="#l13" type="note">
649651<sup>[13]</sup>
650652</a>.</p>
651−<p>b<a l:href="#l14" type="note">
653+<p>With embedded [brackets]<a l:href="#l14" type="note">
652654<sup>[14]</sup>
653−</a> by itself should be a link.</p>
654−<p>Indented once<a l:href="#l15" type="note">
655−<sup>[15]</sup>
656655</a>.</p>
657−<p>Indented twice<a l:href="#l16" type="note">
656+<p>b<a l:href="#l15" type="note">
657+<sup>[15]</sup>
658+</a> by itself should be a link.</p>
659+<p>Indented once<a l:href="#l16" type="note">
658660<sup>[16]</sup>
659661</a>.</p>
660−<p>Indented thrice<a l:href="#l17" type="note">
662+<p>Indented twice<a l:href="#l17" type="note">
661663<sup>[17]</sup>
662664</a>.</p>
665+<p>Indented thrice<a l:href="#l18" type="note">
666+<sup>[18]</sup>
667+</a>.</p>
663668<p>This should [not][] be a link.</p>
664669<empty-line />
665670<p>
666671<code>[not]: /url</code>
667672</p>
668673<empty-line />
669−<p>Foo bar<a l:href="#l18" type="note">
670−<sup>[18]</sup>
671−</a>.</p>
672−<p>Foo biz<a l:href="#l19" type="note">
674+<p>Foo bar<a l:href="#l19" type="note">
673675<sup>[19]</sup>
674676</a>.</p>
677+<p>Foo biz<a l:href="#l20" type="note">
678+<sup>[20]</sup>
679+</a>.</p>
675680</section>
676681<section>
677682<title>
678683<p>With ampersands</p>
679684</title>
680−<p>Here’s a link with an ampersand in the URL<a l:href="#l20" type="note">
681−<sup>[20]</sup>
682−</a>.</p>
683−<p>Here’s a link with an amersand in the link text: AT&T<a l:href="#l21" type="note">
685+<p>Here’s a link with an ampersand in the URL<a l:href="#l21" type="note">
684686<sup>[21]</sup>
685687</a>.</p>
686−<p>Here’s an inline link<a l:href="#l22" type="note">
688+<p>Here’s a link with an amersand in the link text: AT&T<a l:href="#l22" type="note">
687689<sup>[22]</sup>
688690</a>.</p>
689−<p>Here’s an inline link in pointy braces<a l:href="#l23" type="note">
691+<p>Here’s an inline link<a l:href="#l23" type="note">
690692<sup>[23]</sup>
691693</a>.</p>
694+<p>Here’s an inline link in pointy braces<a l:href="#l24" type="note">
695+<sup>[24]</sup>
696+</a>.</p>
692697</section>
693698<section>
694699<title>
695700<p>Autolinks</p>
696701</title>
697−<p>With an ampersand: http://example.com/?foo=1&bar=2<a l:href="#l24" type="note">
698−<sup>[24]</sup>
702+<p>With an ampersand: http://example.com/?foo=1&bar=2<a l:href="#l25" type="note">
703+<sup>[25]</sup>
699704</a>
700705</p>
701706<p>• In a list?</p>
702−<p>• http://example.com/<a l:href="#l25" type="note">
703−<sup>[25]</sup>
707+<p>• http://example.com/<a l:href="#l26" type="note">
708+<sup>[26]</sup>
704709</a>
705710</p>
706711<p>• It should.</p>
707−<p>An e-mail address: nobody@nowhere.net<a l:href="#l26" type="note">
708−<sup>[26]</sup>
712+<p>An e-mail address: nobody@nowhere.net<a l:href="#l27" type="note">
713+<sup>[27]</sup>
709714</a>
710715</p>
711716<cite>
712−<p>Blockquoted: http://example.com/<a l:href="#l27" type="note">
713−<sup>[27]</sup>
717+<p>Blockquoted: http://example.com/<a l:href="#l28" type="note">
718+<sup>[28]</sup>
714719</a>
715720</p>
716721</cite>
@@ -741,22 +746,22 @@
741746<title>
742747<p>Footnotes</p>
743748</title>
744−<p>Here is a footnote reference,<a l:href="#n28" type="note">
745−<sup>[28]</sup>
746−</a> and another.<a l:href="#n29" type="note">
749+<p>Here is a footnote reference,<a l:href="#n29" type="note">
747750<sup>[29]</sup>
748−</a> This should <emphasis>not</emphasis> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a l:href="#n30" type="note">
751+</a> and another.<a l:href="#n30" type="note">
749752<sup>[30]</sup>
753+</a> This should <emphasis>not</emphasis> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<a l:href="#n31" type="note">
754+<sup>[31]</sup>
750755</a>
751756</p>
752757<cite>
753−<p>Notes can go in quotes.<a l:href="#n31" type="note">
754−<sup>[31]</sup>
758+<p>Notes can go in quotes.<a l:href="#n32" type="note">
759+<sup>[32]</sup>
755760</a>
756761</p>
757762</cite>
758−<p>1. And in list items.<a l:href="#n32" type="note">
759−<sup>[32]</sup>
763+<p>1. And in list items.<a l:href="#n33" type="note">
764+<sup>[33]</sup>
760765</a>
761766</p>
762767<p>This paragraph should not be part of the note, as it is not indented.</p>
@@ -776,7 +781,7 @@
776781<p>2</p>
777782</title>
778783<p>
779−<code>http://example.com/?foo=1&bar=2</code>
784+<code>/url</code>
780785</p>
781786</section>
782787<section id="l3">
@@ -784,50 +789,50 @@
784789<p>3</p>
785790</title>
786791<p>
787−<code>/url/</code>
792+<code>http://example.com/?foo=1&bar=2</code>
788793</p>
789794</section>
790795<section id="l4">
791796<title>
792797<p>4</p>
793798</title>
794−<p>title: <code>/url/</code>
799+<p>
800+<code>/url/</code>
795801</p>
796802</section>
797803<section id="l5">
798804<title>
799805<p>5</p>
800806</title>
801−<p>title preceded by two spaces: <code>/url/</code>
807+<p>title: <code>/url/</code>
802808</p>
803809</section>
804810<section id="l6">
805811<title>
806812<p>6</p>
807813</title>
808−<p>title preceded by a tab: <code>/url/</code>
814+<p>title preceded by two spaces: <code>/url/</code>
809815</p>
810816</section>
811817<section id="l7">
812818<title>
813819<p>7</p>
814820</title>
815−<p>title with "quotes" in it: <code>/url/</code>
821+<p>title preceded by a tab: <code>/url/</code>
816822</p>
817823</section>
818824<section id="l8">
819825<title>
820826<p>8</p>
821827</title>
822−<p>title with single quotes: <code>/url/</code>
828+<p>title with "quotes" in it: <code>/url/</code>
823829</p>
824830</section>
825831<section id="l9">
826832<title>
827833<p>9</p>
828834</title>
829−<p>
830−<code>/url/with_underscore</code>
835+<p>title with single quotes: <code>/url/</code>
831836</p>
832837</section>
833838<section id="l10">
@@ -835,7 +840,7 @@
835840<p>10</p>
836841</title>
837842<p>
838−<code>mailto:nobody@nowhere.net</code>
843+<code>/url/with_underscore</code>
839844</p>
840845</section>
841846<section id="l11">
@@ -843,8 +848,7 @@
843848<p>11</p>
844849</title>
845850<p>
846−<code>
847−</code>
851+<code>mailto:nobody@nowhere.net</code>
848852</p>
849853</section>
850854<section id="l12">
@@ -852,7 +856,8 @@
852856<p>12</p>
853857</title>
854858<p>
855−<code>/url/</code>
859+<code>
860+</code>
856861</p>
857862</section>
858863<section id="l13">
@@ -876,7 +881,7 @@
876881<p>15</p>
877882</title>
878883<p>
879−<code>/url</code>
884+<code>/url/</code>
880885</p>
881886</section>
882887<section id="l16">
@@ -899,37 +904,37 @@
899904<title>
900905<p>18</p>
901906</title>
902−<p>Title with "quotes" inside: <code>/url/</code>
907+<p>
908+<code>/url</code>
903909</p>
904910</section>
905911<section id="l19">
906912<title>
907913<p>19</p>
908914</title>
909−<p>Title with "quote" inside: <code>/url/</code>
915+<p>Title with "quotes" inside: <code>/url/</code>
910916</p>
911917</section>
912918<section id="l20">
913919<title>
914920<p>20</p>
915921</title>
916−<p>
917−<code>http://example.com/?foo=1&bar=2</code>
922+<p>Title with "quote" inside: <code>/url/</code>
918923</p>
919924</section>
920925<section id="l21">
921926<title>
922927<p>21</p>
923928</title>
924−<p>AT&T: <code>http://att.com/</code>
929+<p>
930+<code>http://example.com/?foo=1&bar=2</code>
925931</p>
926932</section>
927933<section id="l22">
928934<title>
929935<p>22</p>
930936</title>
931−<p>
932−<code>/script?foo=1&bar=2</code>
937+<p>AT&T: <code>http://att.com/</code>
933938</p>
934939</section>
935940<section id="l23">
@@ -945,7 +950,7 @@
945950<p>24</p>
946951</title>
947952<p>
948−<code>http://example.com/?foo=1&bar=2</code>
953+<code>/script?foo=1&bar=2</code>
949954</p>
950955</section>
951956<section id="l25">
@@ -953,7 +958,7 @@
953958<p>25</p>
954959</title>
955960<p>
956−<code>http://example.com/</code>
961+<code>http://example.com/?foo=1&bar=2</code>
957962</p>
958963</section>
959964<section id="l26">
@@ -961,7 +966,7 @@
961966<p>26</p>
962967</title>
963968<p>
964−<code>mailto:nobody@nowhere.net</code>
969+<code>http://example.com/</code>
965970</p>
966971</section>
967972<section id="l27">
@@ -969,19 +974,27 @@
969974<p>27</p>
970975</title>
971976<p>
972−<code>http://example.com/</code>
977+<code>mailto:nobody@nowhere.net</code>
973978</p>
974979</section>
975−<section id="n28">
980+<section id="l28">
976981<title>
977982<p>28</p>
978983</title>
979−<p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.</p>
984+<p>
985+<code>http://example.com/</code>
986+</p>
980987</section>
981988<section id="n29">
982989<title>
983990<p>29</p>
984991</title>
992+<p>Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.</p>
993+</section>
994+<section id="n30">
995+<title>
996+<p>30</p>
997+</title>
985998<p>Here’s the long note. This one contains multiple blocks.</p>
986999<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p>
9871000<empty-line />
@@ -991,25 +1004,26 @@
9911004<empty-line />
9921005<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</p>
9931006</section>
994−<section id="n30">
1007+<section id="n31">
9951008<title>
996−<p>30</p>
1009+<p>31</p>
9971010</title>
998−<p>This is <emphasis>easier</emphasis> to type. Inline notes may contain links<a l:href="#l30" type="note">
999−<sup>[30]</sup>
1011+<p>This is <emphasis>easier</emphasis> to type. Inline notes may contain links<a l:href="#l31" type="note">
1012+<sup>[31]</sup>
10001013</a> and <code>]</code> verbatim characters, as well as [bracketed text].</p>
10011014</section>
1002−<section id="n31">
1015+<section id="n32">
10031016<title>
1004−<p>31</p>
1017+<p>32</p>
10051018</title>
10061019<p>In quote.</p>
10071020</section>
1008−<section id="n32">
1021+<section id="n33">
10091022<title>
1010−<p>32</p>
1023+<p>33</p>
10111024</title>
10121025<p>In list.</p>
10131026</section>
10141027</body>
10151028</FictionBook>
1029+