I’ve writ­ten pre­vi­ously on switch­ing to Redcarpet to process mark­down. Since then, I was de­ter­mined to find out if I could do the same thing with Kramdown since it’s al­ready a de­pen­dency of Jekyll.

Being Picky About Dependencies

I try as much as I can to min­i­mize the de­pen­den­cies needed to run this site. This site is for fun at the end of the day, but if I can re­move things that do the same ex­act thing, I want to.

Turns out, that writ­ing Github Flavored Markdown is su­per easy with Kramdown. So easy in fact, that I don’t un­der­stand how I did­n’t fig­ure this out ear­lier. Here are the mark­down-re­lated lines in my _config.yml:

# Markdown Rendering
markdown: kramdown
markdown_ext: markdown,mkdown,mkdn,mkd,md,mdown

kramdown:
input: GFM

That’s it! No ad­di­tional gems to in­stall or noth­ing. In fact, if you were us­ing Redcarpet, you should delete it from your Gemfile.

Happy Jekyll-ing!

Series Hacking Jekyll

As I learn things about Jekyll, I try to write about them.

View Series →

Up Next