I\'ve recently switched over to using Jekyll on Github Pages for my various blogs, and love that I can just push Markdown to Github and they handle the processing. I\'d like to
I use kramdown for markdown parsing and it handles footnotes nicely.
Change this line in your _config.yml
file:
markdown: redcarpet
to:
markdown: kramdown
As of Jekyll 3.0.0, kramdown is the default Markdown processor, so the example in OP's question now works out of the box. The pattern is:
Some text[^1].
Some other text[^2].
The identifier in the square brackets does not have to be numeric[^my_footnote].
[^1]: Some footnote.
[^2]: Other footnote.
[^my_footnote]: This also works fine.
Update 3rd Jan. 2020:
GFM
, which is an extension of CommonMark. Both kramdown and GFM can be used to render GitHub Flavored Markdown.When you want to use redcarpet
there seems to be no convenient solution right now.
Although Redcarpet 3 supports footnotes with the syntax you've used, it is not included into Jekyll, because Redcarpet 3 removes Ruby 1.8 compatibility (source).
See this solution by Jerod Santo:
Add a file called Gemfile
to the root of your Jekyll folder with this content:
source "https://rubygems.org"
gem "jekyll"
gem "redcarpet", github: "triplecanopy/redcarpet"
or alternatively djui/redcarpet
Theny adjust your _config.yml
to
markdown: redcarpet
redcarpet:
extensions: [footnotes]
I don't know what's the easiest way to do this. Comments are welcome.
Seems to support footnotes (source, source).