sholsinger.com

Categories Photography Résumé About Me

How to Get Jekyll to Support Github Flavored Markdown

07 Mar 2014

I found this information somwhere on the interwebs. I wanted to get Jekyll to parse Markdown similar to the format used in Github Flavored Markdown. So I went a-googling. Here is the bits you need to add to your _config.yml to get GFM.

# Make redcarpet behave like GitHub Flavored Markdown
redcarpet:
  extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "strikethrough", "superscript", "with_toc_data"]

The with_toc_data option is supposed to provide those permalinked page headings we all seem to be using these days as well as a Table of Contents. However it falls a bit flat on how it identifies each heading.

Filed under

Comments
comments powered by Disqus