Syntax highlighting markdown code blocks in Jekyll (without using liquid tags)

前端 未结 9 1936
灰色年华
灰色年华 2020-12-04 09:19

It seems like syntax highlighting in Jekyll is limited to using liquid tags and pygments like so:

{% highlight bash %}
cd ~
{% endhighlight %}
9条回答
  •  遥遥无期
    2020-12-04 10:04

    I ended up switching to kramdown to parse markdown which comes with coderay for syntax highlighting. This has the benefit of being a pure ruby solution which works on heroku.

提交回复
热议问题