2 changes: 1 addition & 1 deletion test/testcases/block/12_extension/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>without header id</h1>
<p>some <span><em>para</em></span></p>
</div>

<p>Some text<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote">10</a></sup>.</p>
<p>Some text<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote" rel="footnote">10</a></sup>.</p>

<div class="footnotes" role="doc-endnotes">
<ol start="10">
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/block/12_extension/options2.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<p>Some text<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote">1</a></sup>.</p>
<p>Some text<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote" rel="footnote">1</a></sup>.</p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/block/14_table/table_with_footnote.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<table>
<tbody>
<tr>
<td>this is <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup></td>
<td>this is <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup></td>
<td>a table</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/block/16_toc/toc_with_footnotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<li><a href="#header1-level-1" id="markdown-toc-header1-level-1">Header level 1</a></li>
</ul>

<h1 id="header1-level-1">Header<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup> level 1</h1>
<h1 id="header1-level-1">Header<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup> level 1</h1>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
4 changes: 4 additions & 0 deletions test/testcases/span/03_codespan/normal.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
<p>No <code>literal backtick</code>.</p>

<p><code>something</code></p>

<p>` `</p>

<p>a ` `</p>
4 changes: 4 additions & 0 deletions test/testcases/span/03_codespan/normal.text
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As \`are\` these!
No `` literal backtick``.

`something`

` `

a ` `
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/backlink_inline.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>This is <sup id="fnref:paragraph" role="doc-noteref"><a href="#fn:paragraph" class="footnote">1</a></sup><sup id="fnref:header" role="doc-noteref"><a href="#fn:header" class="footnote">2</a></sup><sup id="fnref:blockquote" role="doc-noteref"><a href="#fn:blockquote" class="footnote">3</a></sup><sup id="fnref:codeblock" role="doc-noteref"><a href="#fn:codeblock" class="footnote">4</a></sup><sup id="fnref:list" role="doc-noteref"><a href="#fn:list" class="footnote">5</a></sup><sup id="fnref:table" role="doc-noteref"><a href="#fn:table" class="footnote">6</a></sup><sup id="fnref:hrule" role="doc-noteref"><a href="#fn:hrule" class="footnote">7</a></sup><sup id="fnref:mathblock" role="doc-noteref"><a href="#fn:mathblock" class="footnote">8</a></sup><sup id="fnref:html" role="doc-noteref"><a href="#fn:html" class="footnote">9</a></sup></p>
<p>This is <sup id="fnref:paragraph" role="doc-noteref"><a href="#fn:paragraph" class="footnote" rel="footnote">1</a></sup><sup id="fnref:header" role="doc-noteref"><a href="#fn:header" class="footnote" rel="footnote">2</a></sup><sup id="fnref:blockquote" role="doc-noteref"><a href="#fn:blockquote" class="footnote" rel="footnote">3</a></sup><sup id="fnref:codeblock" role="doc-noteref"><a href="#fn:codeblock" class="footnote" rel="footnote">4</a></sup><sup id="fnref:list" role="doc-noteref"><a href="#fn:list" class="footnote" rel="footnote">5</a></sup><sup id="fnref:table" role="doc-noteref"><a href="#fn:table" class="footnote" rel="footnote">6</a></sup><sup id="fnref:hrule" role="doc-noteref"><a href="#fn:hrule" class="footnote" rel="footnote">7</a></sup><sup id="fnref:mathblock" role="doc-noteref"><a href="#fn:mathblock" class="footnote" rel="footnote">8</a></sup><sup id="fnref:html" role="doc-noteref"><a href="#fn:html" class="footnote" rel="footnote">9</a></sup></p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/backlink_text.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Some footnote here<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup></p>
<p>Some footnote here<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="footnote">1</a></sup></p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/footnote_nr.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>This is a footnote<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote">35</a></sup>. And another<sup id="fnref:bc" role="doc-noteref"><a href="#fn:bc" class="footnote">36</a></sup>.</p>
<p>This is a footnote<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote" rel="footnote">35</a></sup>. And another<sup id="fnref:bc" role="doc-noteref"><a href="#fn:bc" class="footnote" rel="footnote">36</a></sup>.</p>

<div class="footnotes" role="doc-endnotes">
<ol start="35">
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/footnote_prefix.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>This is a<sup id="fnref:adf123-ab" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote">1</a></sup> footnote<sup id="fnref:adf123-ab:1" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote">1</a></sup>. And another<sup id="fnref:adf123-bc" role="doc-noteref"><a href="#fn:adf123-bc" class="footnote">2</a></sup>.</p>
<p>This is a<sup id="fnref:adf123-ab" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote" rel="footnote">1</a></sup> footnote<sup id="fnref:adf123-ab:1" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote" rel="footnote">1</a></sup>. And another<sup id="fnref:adf123-bc" role="doc-noteref"><a href="#fn:adf123-bc" class="footnote" rel="footnote">2</a></sup>.</p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
6 changes: 3 additions & 3 deletions test/testcases/span/04_footnote/inside_footnote.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<p>Lorem ipsum<sup id="fnref:first" role="doc-noteref"><a href="#fn:first" class="footnote">1</a></sup> dolor sit amet.</p>
<p>Lorem ipsum<sup id="fnref:first" role="doc-noteref"><a href="#fn:first" class="footnote" rel="footnote">1</a></sup> dolor sit amet.</p>

<p>Lorem ipsum<sup id="fnref:second" role="doc-noteref"><a href="#fn:second" class="footnote">2</a></sup> dolor sit amet.</p>
<p>Lorem ipsum<sup id="fnref:second" role="doc-noteref"><a href="#fn:second" class="footnote" rel="footnote">2</a></sup> dolor sit amet.</p>

<div class="footnotes" role="doc-endnotes">
<ol>
<li id="fn:first" role="doc-endnote">
<p>Consecutur adisping.<sup id="fnref:third" role="doc-noteref"><a href="#fn:third" class="footnote">3</a></sup> <a href="#fnref:first" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
<p>Consecutur adisping.<sup id="fnref:third" role="doc-noteref"><a href="#fn:third" class="footnote" rel="footnote">3</a></sup> <a href="#fnref:first" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
</li>
<li id="fn:second" role="doc-endnote">
<p>Sed ut perspiciatis unde omnis. <a href="#fnref:second" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
Expand Down
10 changes: 5 additions & 5 deletions test/testcases/span/04_footnote/markers.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<p>This is some *ref.<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup></p>
<p>This is some *ref.<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="footnote">1</a></sup></p>

<blockquote>
<p>a blockquote <sup id="fnref:3" role="doc-noteref"><a href="#fn:3" class="footnote">2</a></sup></p>
<p>a blockquote <sup id="fnref:3" role="doc-noteref"><a href="#fn:3" class="footnote" rel="footnote">2</a></sup></p>
</blockquote>

<ul>
<li>and a list item <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">3</a></sup></li>
<li>and a list item <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">3</a></sup></li>
</ul>

<h1>And a header<sup id="fnref:now" role="doc-noteref"><a href="#fn:now" class="footnote">4</a></sup></h1>
<h1>And a header<sup id="fnref:now" role="doc-noteref"><a href="#fn:now" class="footnote" rel="footnote">4</a></sup></h1>

<p>A marker without a definition [^without].</p>

<p>A marker <sup id="fnref:empty" role="doc-noteref"><a href="#fn:empty" class="footnote">5</a></sup> used twice<sup id="fnref:fn:1" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup> and thrice<sup id="fnref:fn:2" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup>.</p>
<p>A marker <sup id="fnref:empty" role="doc-noteref"><a href="#fn:empty" class="footnote" rel="footnote">5</a></sup> used twice<sup id="fnref:fn:1" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="footnote">1</a></sup> and thrice<sup id="fnref:fn:2" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="footnote">1</a></sup>.</p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/placement.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</ol>
</div>

<p>Some para with a<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup> footnote.</p>
<p>Some para with a<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup> footnote.</p>

<p>And another para.</p>
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/regexp_problem.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1>Something</h1>
<p>something<sup id="fnref:note1" role="doc-noteref"><a href="#fn:note1" class="footnote">1</a></sup>.</p>
<p>something<sup id="fnref:note1" role="doc-noteref"><a href="#fn:note1" class="footnote" rel="footnote">1</a></sup>.</p>

<h1>Footnotes</h1>

Expand Down
2 changes: 1 addition & 1 deletion test/testcases/span/04_footnote/without_backlink.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Some footnote here<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup></p>
<p>Some footnote here<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="footnote">1</a></sup></p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
9 changes: 9 additions & 0 deletions test/testcases/span/abbreviations/abbrev_in_html.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<p>This is <em>some <abbr title="This Escapes SVG Text.">TEST</abbr></em> to check.</p>

<svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
<text x="20" y="20">This TEST fails.</text>
</svg>
<svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
<text x="20" y="20">This <abbr title="This Escapes SVG Text.">TEST</abbr> fails.</text>
</svg>

10 changes: 10 additions & 0 deletions test/testcases/span/abbreviations/abbrev_in_html.text
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This is <em>some TEST</em> to check.

<svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
<text x="20" y="20">This TEST fails.</text>
</svg>
<svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
<text x="20" y="20" markdown="span">This TEST fails.</text>
</svg>

*[TEST]: This Escapes SVG Text.
2 changes: 1 addition & 1 deletion test/testcases/span/abbreviations/in_footnote.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>There is a <abbr title="Text File">TXT</abbr> file here. <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup></p>
<p>There is a <abbr title="Text File">TXT</abbr> file here. <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup></p>

<div class="footnotes" role="doc-endnotes">
<ol>
Expand Down
2 changes: 1 addition & 1 deletion test/testcases/span/text_substitutions/entities.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
values may &#xAF; may also show but
not st. like &amp;#xYZ;.</p>

<p>This is BS&amp;T; done!</p>
<p>This &lt;span&gt; is BS&amp;T; done!</p>
2 changes: 1 addition & 1 deletion test/testcases/span/text_substitutions/entities.text
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ As well \& as this. Some &#343; other
values may &#xAF; may also show but
not st. like &#xYZ;.

This is BS&T; done!
This &lt;span&gt; is BS&T; done!