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?

有帮助吗?

解决方案

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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top