mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
This makes three changes to backlinks: - Inserts a space before `<a href='…'>↩</a>` to make it look better - Uses hexadecimal references (`&#x…;`) instead of decimal references for clarity - Adds U+FE0E VARIATION SELECTOR 15 to the ↩ to suppress emojification on both iOS and Edge on Windows If variation selector 15 isn't appended to the ↩, then the return arrow will show up as an emoji on iOS and Edge for Windows. The Pandoc project has already run into this quirk as documented on https://github.com/jgm/pandoc/issues/5469 and they've pushed a change for their Markdown processor already.
33 lines
923 B
Text
33 lines
923 B
Text
1
|
|
//- - - - - - - - -//
|
|
That's some text with a footnote.[^1]
|
|
|
|
[^1]: And that's the footnote.
|
|
|
|
That's the second paragraph.
|
|
//- - - - - - - - -//
|
|
<p>That's some text with a footnote.<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>
|
|
<section class="footnotes" role="doc-endnotes">
|
|
<hr>
|
|
<ol>
|
|
<li id="fn:1" role="doc-endnote">
|
|
<p>And that's the footnote.</p>
|
|
<p>That's the second paragraph. <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
|
</li>
|
|
</ol>
|
|
</section>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
3
|
|
//- - - - - - - - -//
|
|
[^000]:0 [^]:
|
|
//- - - - - - - - -//
|
|
<section class="footnotes" role="doc-endnotes">
|
|
<hr>
|
|
<ol>
|
|
<li id="fn:1" role="doc-endnote">
|
|
<p>0 [^]: <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
|
</li>
|
|
</ol>
|
|
</section>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|