4
votes

I'm currently building a site using GitHub pages and trying to make use of some of the GitHub flavoured Markdown features. Specifically fenced code blocks and tables.

Using redcarpet I'm getting syntax highlighted fenced blocks but no tables.

Switching to kramdown gives tables but the previously working code blocks stop.

I'd prefer if I can get away without needing to run jekyll locally so I can update the site from anywhere.

Is there a configuration option that will configure either of the markdown processors to work in a similar fashion to GitHub flavoured markdown regarding the two above features?

1

1 Answers

4
votes

You can use fenced code blocks and tables with kramdown.

Add this to your _config.yml to enable GitHub Flavoured Markdown for kramdown.

kramdown:
  input: GFM