This is how I make a footnote using kramdown. (I am also working within the context of Jekyll)
I make a reference to a footnote [^1].
[^1]: This is the footnote.
This gives me the following HTML code from the second line:
<div class="footnotes">
<ol>
<li id="fn:1">
<p>This is the footnote. <a href="#fnref:1" class="reversefootnote">↩</a></p>
</li>
</ol>
</div>
While I am fine with all this, I do wish to switch out the ↩
character for one of my choosing (a Font Awesome character, actually). What is the best way of achieving this? Can I use CSS?
As far as I know, this isn't presently an option in kramdown — at least, it isn't listed in the configuration options. (Might want to submit a feature request; the devs are very responsive.) However, there're a few workarounds that you can try, depending on your situation. Of these, probably the simplest is to pipe your output through
sed
and change the character to whatever you want:There are hacks suppressing the
reversefootnote
class in CSS or changing the character in Javascript but it's probably better to change the actual content.