문제

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