user2991438
user2991438

Reputation:

How can I change the format of footnotes in Jekyll's kramdown?

Currently, using kramdown in Jekyll, footnotes using [^1] displays a superscripted number as such.1 However, I wish footnotes to look like this[1] in the fashion of Wikipedia.

Where can I find the code to manipulate for this small change?

Upvotes: 4

Views: 910

Answers (1)

David Jacquel
David Jacquel

Reputation: 52819

To achieve your goal, you can use css.

If you have something like this in mypost.md content :

I make a reference to a footnote [^1].
[^1]: This is the footnote

Add two css rules :

a.footnote:before {   
 content: "[";
}

a.footnote:after {
    content: "]";
}

Done !

Upvotes: 7

Related Questions