openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

Multiple Footnote Marker to same footnote on page

Open Joniras opened this issue 2 years ago • 1 comments

I've got a page that has multiple footnote references that need to go to the same footnote at the bottom of the page.

Something like this:

<div class="footnote">This is my first footnote</div>
  Lorem ipsum...
<div class="footnote">Second <strong>footnote</strong>!</div>
  Dolor sit amet...
  <!--This is a reference to the same footnote as the first footnote -->
<div class="footnote-marker-1"></div>

Which should result in something like this:

image

Is there any option to do that?

Joniras avatar Feb 07 '23 10:02 Joniras

I actually got it somehow working by accident:

  Lorem ipsum...
<div class="footnote" id="f-1">This is my first footnote</div><br/>
  Lorem ipsum...
<div class="footnote">Second <strong>footnote</strong>!</div><br/>
  Dolor sit amet...
  <!--This is a reference to the same footnote as the first footnote -->
<a href="#f-1">[1]</a>

Just left it here so other people find it.

Leaving it open so it is maybe added to the wiki.

Joniras avatar Feb 07 '23 10:02 Joniras