-
-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Description
When including characters in a footnote name, such as an emoji, those characters are not encoded. cmark-gfm does encode these.
cmark_gfm (cmark-gfm 0.29.0.gfm.10)
second[^😄second]
[^😄second]: two
gives
<p>second<sup class="footnote-ref"><a href="#fn-%F0%9F%98%84second" id="fnref-%F0%9F%98%84second" data-footnote-ref>1</a></sup></p>
<section class="footnotes" data-footnotes>
<ol>
<li id="fn-%F0%9F%98%84second">
<p>two <a href="#fnref-%F0%9F%98%84second" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1" aria-label="Back to reference 1">↩</a></p>
</li>
</ol>
</section>
comrak
gives
<p>second<sup class="footnote-ref"><a href="#fn-😄second" id="fnref-😄second" data-footnote-ref>1</a></sup></p>
<section class="footnotes" data-footnotes>
<ol>
<li id="fn-😄second">
<p>two <a href="#fnref-😄second" class="footnote-backref" data-footnote-backref data-footnote-backref-idx="1" aria-label="Back to reference 1">↩</a></p>
</li>
</ol>
</section>
Metadata
Metadata
Assignees
Labels
No labels