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

Multiple Reference Calls to the Same Footnote #10

Open
String10 opened this issue Feb 6, 2024 · 0 comments
Open

Multiple Reference Calls to the Same Footnote #10

String10 opened this issue Feb 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@String10
Copy link
Owner

String10 commented Feb 6, 2024

Describe the bug
Multiple reference call to the same footnotes will only generate one footnote-to-content link.

To Reproduce
Check the following markdown:

Several calls[^1] [^1] to the same definition may occur.

[^1]: One definition here.

Then we get:

<p>Several calls<sup id="fnref-1"><a href="#fn-1" class="footnote-ref">1</a></sup> <sup id="fnref-1"><a href="#fn-1" class="footnote-ref">1</a></sup> to the same definition may occur.</p>
<div class="footnotes">
  <hr>
  <ol>
    <li id="fn-1">One definition here.<a href="#fnref-1" class="footnote-backref"></a></li>
  </ol>
</div>

Two reference calls get the same id and click the back link will only lead to the first call.

Expected behavior

Something like this:

<p>Several calls<sup id="fnref-1"><a href="#fn-1" class="footnote-ref">1</a></sup> <sup id="fnref-1:1"><a href="#fn-1" class="footnote-ref">1</a></sup> to the same definition may occur.</p>
<div class="footnotes">
  <hr>
  <ol>
    <li id="fn-1">One definition here.<a href="#fnref-1" class="footnote-backref"></a><a href="#fnref-1-1" class="footnote-backref"></a></li>
  </ol>
</div>

Additional context
See String10/KGarden#37 for more details.

@String10 String10 added the bug Something isn't working label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant