@@ -853,7 +853,7 @@ func TestAutoLink(t *testing.T) {
853
853
854
854
var footnoteTests = []string {
855
855
"testing footnotes.[^a]\n \n [^a]: This is the note\n " ,
856
- `<p>testing footnotes.<sup class="footnote-ref" id="fnref:a"><a rel="footnote" href="#fn:a">1</a></sup></p>
856
+ `<p>testing footnotes.<sup class="footnote-ref" id="fnref:a"><a href="#fn:a">1</a></sup></p>
857
857
<div class="footnotes">
858
858
859
859
<hr />
@@ -877,7 +877,7 @@ var footnoteTests = []string{
877
877
878
878
No longer in the footnote
879
879
` ,
880
- `<p>testing long<sup class="footnote-ref" id="fnref:b"><a rel="footnote" href="#fn:b">1</a></sup> notes.</p>
880
+ `<p>testing long<sup class="footnote-ref" id="fnref:b"><a href="#fn:b">1</a></sup> notes.</p>
881
881
882
882
<p>No longer in the footnote</p>
883
883
<div class="footnotes">
@@ -913,7 +913,7 @@ what happens here
913
913
[note]: /link/c
914
914
915
915
` ,
916
- `<p>testing<sup class="footnote-ref" id="fnref:c"><a rel="footnote" href="#fn:c">1</a></sup> multiple<sup class="footnote-ref" id="fnref:d"><a rel="footnote" href="#fn:d">2</a></sup> notes.</p>
916
+ `<p>testing<sup class="footnote-ref" id="fnref:c"><a href="#fn:c">1</a></sup> multiple<sup class="footnote-ref" id="fnref:d"><a href="#fn:d">2</a></sup> notes.</p>
917
917
918
918
<p>omg</p>
919
919
@@ -932,7 +932,7 @@ what happens here
932
932
` ,
933
933
934
934
"testing inline^[this is the note] notes.\n " ,
935
- `<p>testing inline<sup class="footnote-ref" id="fnref:this-is-the-note"><a rel="footnote" href="#fn:this-is-the-note">1</a></sup> notes.</p>
935
+ `<p>testing inline<sup class="footnote-ref" id="fnref:this-is-the-note"><a href="#fn:this-is-the-note">1</a></sup> notes.</p>
936
936
<div class="footnotes">
937
937
938
938
<hr />
@@ -944,7 +944,7 @@ what happens here
944
944
` ,
945
945
946
946
"testing multiple[^1] types^[inline note] of notes[^2]\n \n [^2]: the second deferred note\n [^1]: the first deferred note\n \n \t which happens to be a block\n " ,
947
- `<p>testing multiple<sup class="footnote-ref" id="fnref:1"><a rel="footnote" href="#fn:1">1</a></sup> types<sup class="footnote-ref" id="fnref:inline-note"><a rel="footnote" href="#fn:inline-note">2</a></sup> of notes<sup class="footnote-ref" id="fnref:2"><a rel="footnote" href="#fn:2">3</a></sup></p>
947
+ `<p>testing multiple<sup class="footnote-ref" id="fnref:1"><a href="#fn:1">1</a></sup> types<sup class="footnote-ref" id="fnref:inline-note"><a href="#fn:inline-note">2</a></sup> of notes<sup class="footnote-ref" id="fnref:2"><a href="#fn:2">3</a></sup></p>
948
948
<div class="footnotes">
949
949
950
950
<hr />
@@ -967,7 +967,7 @@ what happens here
967
967
968
968
may be multiple paragraphs.
969
969
` ,
970
- `<p>This is a footnote<sup class="footnote-ref" id="fnref:1"><a rel="footnote" href="#fn:1">1</a></sup><sup class="footnote-ref" id="fnref:and-this-is-an-i"><a rel="footnote" href="#fn:and-this-is-an-i">2</a></sup></p>
970
+ `<p>This is a footnote<sup class="footnote-ref" id="fnref:1"><a href="#fn:1">1</a></sup><sup class="footnote-ref" id="fnref:and-this-is-an-i"><a href="#fn:and-this-is-an-i">2</a></sup></p>
971
971
<div class="footnotes">
972
972
973
973
<hr />
@@ -983,21 +983,21 @@ what happens here
983
983
` ,
984
984
985
985
"empty footnote[^]\n \n [^]: fn text" ,
986
- "<p>empty footnote<sup class=\" footnote-ref\" id=\" fnref:\" ><a rel= \" footnote \" href=\" #fn:\" >1</a></sup></p>\n <div class=\" footnotes\" >\n \n <hr />\n \n <ol>\n <li id=\" fn:\" >fn text\n </li>\n </ol>\n </div>\n " ,
986
+ "<p>empty footnote<sup class=\" footnote-ref\" id=\" fnref:\" ><a href=\" #fn:\" >1</a></sup></p>\n <div class=\" footnotes\" >\n \n <hr />\n \n <ol>\n <li id=\" fn:\" >fn text\n </li>\n </ol>\n </div>\n " ,
987
987
988
988
"Some text.[^note1]\n \n [^note1]: fn1" ,
989
- "<p>Some text.<sup class=\" footnote-ref\" id=\" fnref:note1\" ><a rel= \" footnote \" href=\" #fn:note1\" >1</a></sup></p>\n <div class=\" footnotes\" >\n \n <hr />\n \n <ol>\n <li id=\" fn:note1\" >fn1\n </li>\n </ol>\n </div>\n " ,
989
+ "<p>Some text.<sup class=\" footnote-ref\" id=\" fnref:note1\" ><a href=\" #fn:note1\" >1</a></sup></p>\n <div class=\" footnotes\" >\n \n <hr />\n \n <ol>\n <li id=\" fn:note1\" >fn1\n </li>\n </ol>\n </div>\n " ,
990
990
991
991
"Some text.[^note1][^note2]\n \n [^note1]: fn1\n [^note2]: fn2\n " ,
992
- "<p>Some text.<sup class=\" footnote-ref\" id=\" fnref:note1\" ><a rel= \" footnote \" href=\" #fn:note1\" >1</a></sup><sup class=\" footnote-ref\" id=\" fnref:note2\" ><a rel= \" footnote \" href=\" #fn:note2\" >2</a></sup></p>\n <div class=\" footnotes\" >\n \n <hr />\n \n <ol>\n <li id=\" fn:note1\" >fn1\n </li>\n <li id=\" fn:note2\" >fn2\n </li>\n </ol>\n </div>\n " ,
992
+ "<p>Some text.<sup class=\" footnote-ref\" id=\" fnref:note1\" ><a href=\" #fn:note1\" >1</a></sup><sup class=\" footnote-ref\" id=\" fnref:note2\" ><a href=\" #fn:note2\" >2</a></sup></p>\n <div class=\" footnotes\" >\n \n <hr />\n \n <ol>\n <li id=\" fn:note1\" >fn1\n </li>\n <li id=\" fn:note2\" >fn2\n </li>\n </ol>\n </div>\n " ,
993
993
994
994
`Bla bla [^1] [WWW][w3]
995
995
996
996
[^1]: This is a footnote
997
997
998
998
[w3]: http://www.w3.org/
999
999
` ,
1000
- `<p>Bla bla <sup class="footnote-ref" id="fnref:1"><a rel="footnote" href="#fn:1">1</a></sup> <a href="http://www.w3.org/">WWW</a></p>
1000
+ `<p>Bla bla <sup class="footnote-ref" id="fnref:1"><a href="#fn:1">1</a></sup> <a href="http://www.w3.org/">WWW</a></p>
1001
1001
<div class="footnotes">
1002
1002
1003
1003
<hr />
@@ -1013,7 +1013,7 @@ what happens here
1013
1013
1014
1014
[^fn1]: Fine print
1015
1015
` ,
1016
- `<p>This is exciting!<sup class="footnote-ref" id="fnref:fn1"><a rel="footnote" href="#fn:fn1">1</a></sup></p>
1016
+ `<p>This is exciting!<sup class="footnote-ref" id="fnref:fn1"><a href="#fn:fn1">1</a></sup></p>
1017
1017
<div class="footnotes">
1018
1018
1019
1019
<hr />
@@ -1031,17 +1031,17 @@ test footnotes the second.[^b]
1031
1031
[^a]: This is the first note[^a].
1032
1032
[^b]: this is the second note.[^a]
1033
1033
` ,
1034
- `<p>testing footnotes.<sup class="footnote-ref" id="fnref:a"><a rel="footnote" href="#fn:a">1</a></sup></p>
1034
+ `<p>testing footnotes.<sup class="footnote-ref" id="fnref:a"><a href="#fn:a">1</a></sup></p>
1035
1035
1036
- <p>test footnotes the second.<sup class="footnote-ref" id="fnref:b"><a rel="footnote" href="#fn:b">2</a></sup></p>
1036
+ <p>test footnotes the second.<sup class="footnote-ref" id="fnref:b"><a href="#fn:b">2</a></sup></p>
1037
1037
<div class="footnotes">
1038
1038
1039
1039
<hr />
1040
1040
1041
1041
<ol>
1042
- <li id="fn:a">This is the first note<sup class="footnote-ref" id="fnref:a"><a rel="footnote" href="#fn:a">1</a></sup>.
1042
+ <li id="fn:a">This is the first note<sup class="footnote-ref" id="fnref:a"><a href="#fn:a">1</a></sup>.
1043
1043
</li>
1044
- <li id="fn:b">this is the second note.<sup class="footnote-ref" id="fnref:a"><a rel="footnote" href="#fn:a">1</a></sup>
1044
+ <li id="fn:b">this is the second note.<sup class="footnote-ref" id="fnref:a"><a href="#fn:a">1</a></sup>
1045
1045
</li>
1046
1046
</ol>
1047
1047
</div>
@@ -1086,13 +1086,13 @@ func TestNestedFootnotes(t *testing.T) {
1086
1086
1087
1087
[^fn2]:
1088
1088
Obelisk` ,
1089
- `<p>Paragraph.<sup class="footnote-ref" id="fnref:fn1"><a rel="footnote" href="#fn:fn1">1</a></sup></p>
1089
+ `<p>Paragraph.<sup class="footnote-ref" id="fnref:fn1"><a href="#fn:fn1">1</a></sup></p>
1090
1090
<div class="footnotes">
1091
1091
1092
1092
<hr />
1093
1093
1094
1094
<ol>
1095
- <li id="fn:fn1">Asterisk<sup class="footnote-ref" id="fnref:fn2"><a rel="footnote" href="#fn:fn2">2</a></sup>
1095
+ <li id="fn:fn1">Asterisk<sup class="footnote-ref" id="fnref:fn2"><a href="#fn:fn2">2</a></sup>
1096
1096
</li>
1097
1097
<li id="fn:fn2">Obelisk
1098
1098
</li>
@@ -1110,19 +1110,19 @@ This uses footnote C.[^C]
1110
1110
[^C]:
1111
1111
C note, uses B.[^B]
1112
1112
` ,
1113
- `<p>This uses footnote A.<sup class="footnote-ref" id="fnref:A"><a rel="footnote" href="#fn:A">1</a></sup></p>
1113
+ `<p>This uses footnote A.<sup class="footnote-ref" id="fnref:A"><a href="#fn:A">1</a></sup></p>
1114
1114
1115
- <p>This uses footnote C.<sup class="footnote-ref" id="fnref:C"><a rel="footnote" href="#fn:C">2</a></sup></p>
1115
+ <p>This uses footnote C.<sup class="footnote-ref" id="fnref:C"><a href="#fn:C">2</a></sup></p>
1116
1116
<div class="footnotes">
1117
1117
1118
1118
<hr />
1119
1119
1120
1120
<ol>
1121
- <li id="fn:A">A note. use itself.<sup class="footnote-ref" id="fnref:A"><a rel="footnote" href="#fn:A">1</a></sup>
1121
+ <li id="fn:A">A note. use itself.<sup class="footnote-ref" id="fnref:A"><a href="#fn:A">1</a></sup>
1122
1122
</li>
1123
- <li id="fn:C">C note, uses B.<sup class="footnote-ref" id="fnref:B"><a rel="footnote" href="#fn:B">3</a></sup>
1123
+ <li id="fn:C">C note, uses B.<sup class="footnote-ref" id="fnref:B"><a href="#fn:B">3</a></sup>
1124
1124
</li>
1125
- <li id="fn:B">B note, uses A to test duplicate.<sup class="footnote-ref" id="fnref:A"><a rel="footnote" href="#fn:A">1</a></sup>
1125
+ <li id="fn:B">B note, uses A to test duplicate.<sup class="footnote-ref" id="fnref:A"><a href="#fn:A">1</a></sup>
1126
1126
</li>
1127
1127
</ol>
1128
1128
</div>
0 commit comments