I think this is a BlackFriday issue. But here’s the problem.
If there’s a new line in the footnote in markdown, the [return] at the end of the footnote is sent to a new line.
footnote with new lines[^newline]
footnote without new lines[^nonewline]
<!-- Footnotes -->
[^newline]: This is the first line of the footnote.
This is the second line.
[^nonewline]: No new lines in this footnote.
The resulting HTML looks like this:
<ol>
<li id="fn:newline">
<p>This is the first line.
This is the second line.</p>
<a class="footnote-return" href="#fnref:newline">
<sup>[return]</sup>
</a>
</li>
<li id="fn:nonewline">No new lines in this footnote.
<a class="footnote-return" href="#fnref:nonewline">
<sup>[return]</sup>
</a>
</li>
</ol>
Screenshot:
As you can see, the first footnote text is wrapped in <p>
and then the return link is added.
I tried on multiple themes and the output is always the same. Has anyone else encountered this issue and/or knows a workaround (apart from having the footnote on one long line)?