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

With an empty footnote backlink, superscript numerals nonetheless appear in reference list #270

Closed
kylebarbour opened this issue Jul 30, 2015 · 3 comments
Assignees
Labels

Comments

@kylebarbour
Copy link

@kylebarbour kylebarbour commented Jul 30, 2015

It is possible to suppress footnote backlinks by using:

{::options footnote_backlink="" /}

However, when there are multiple references to a footnote, those superscripts still appear. For example, consider the following test case:

{::options footnote_backlink="" /}
Test sentence 1. [^ref] Test sentence 2. [^ref]

[^ref]:
    Reference.

This produces the following HTML output:

<p>Test sentence 1. <sup id="fnref:ref"><a href="#fn:ref" class="footnote">1</a></sup> Test sentence 2. <sup id="fnref:ref:1"><a href="#fn:ref" class="footnote">1</a></sup></p>

<div class="footnotes">
  <ol>
    <li id="fn:ref">

      <p>Reference. <a href="#fnref:ref" class="reversefootnote"></a> <a href="#fnref:ref:1" class="reversefootnote"><sup>2</sup></a></p>
    </li>
  </ol>
</div>

which causes the footnote to have an undesired superscript 2 as well as additional undisplayed HTML. It would be nice to have the footnote backlink fully suppressible so that these don't need to be edited out in sed.

@gettalong gettalong self-assigned this Jul 31, 2015
@gettalong
Copy link
Owner

@gettalong gettalong commented Jul 31, 2015

Thanks, I will have a look at this and then decide.

@gettalong
Copy link
Owner

@gettalong gettalong commented Sep 26, 2015

I have changed the implementation so that an empty footnote_backlink option will suppress the output of all backlinks.

@gettalong gettalong closed this Sep 26, 2015
@kylebarbour
Copy link
Author

@kylebarbour kylebarbour commented Sep 26, 2015

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.