Skip to content

Visible footnote headings ​

Used footnote headings enter reference lookup; unused definitions do not.

Generated from resources/examples/edge-cases.md - edit the cases there, not here. Each case links the conformance fixture it produces.

Visible footnote headings ​

4 conformance fixtures
carve
x[^n]

[^n]: # H

[H][]
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p><a href="#H">H</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <h1 id="H">H</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^n]: # H

[H][]
html
<p>[H][]</p>
carve
x[^n]

[^n]: # H

</#H>
html
<p>x<a id="fnref1" href="#fn1" role="doc-noteref"><sup>1</sup></a></p>
<p><a href="#H">H</a></p>
<section role="doc-endnotes" aria-label="Footnotes">
  <hr>
  <ol>
    <li id="fn1">
      <h1 id="H">H</h1>
      <p><a href="#fnref1" role="doc-backlink" aria-label="Back to reference">↩</a></p>
    </li>
  </ol>
</section>
carve
[^n]: # H

</#H>
html
<p>&lt;/#H&gt;</p>

Released under the MIT License.