Skip to content

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

Closed

Description

@kylebarbour

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.

Activity

  1. self-assigned this
    on Jul 31, 2015
  2. gettalong commented on Jul 31, 2015

    @gettalong
    Owner

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

  3. gettalong commented on Sep 26, 2015

    @gettalong
    Owner

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

  4. kylebarbour commented on Sep 26, 2015

    @kylebarbour
    Author

    Thank you!

  5. added a commit that references this issue on Oct 2, 2015
    96c8001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions