Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footnote documentation conflicts with behavior #372

Closed
jmooring opened this issue Apr 7, 2022 · 1 comment
Closed

Footnote documentation conflicts with behavior #372

jmooring opened this issue Apr 7, 2022 · 1 comment

Comments

@jmooring
Copy link

jmooring commented Apr 7, 2022

See https://michelf.ca/projects/php-markdown/extra/#footnotes

Note that you cannot make two links to the same footnotes: if you try, the second footnote reference will be left as plain text.

But https://michelf.ca/projects/php-markdown/dingus/ behaves differently (in a good way).

This:

a[^1] b[^1]
[^1]:c

Produces this:

<p>a<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup> b<sup id="fnref2:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>

<div class="footnotes" role="doc-endnotes">
<hr />
<ol>

<li id="fn:1" role="doc-endnote">
<p>c&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a> <a href="#fnref2:1" class="footnote-backref" role="doc-backlink">&#8617;&#xFE0E;</a></p>
</li>

</ol>
</div>
@michelf
Copy link
Owner

michelf commented Apr 7, 2022

Right. That should have been updated in 2013. I just deleted that sentence.

Thank you.

@michelf michelf closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants