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

前端 未结 9 1933
灰色年华
灰色年华 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 09:49

    Fenced blocks were introduced with Redcarpet 2. Jekyll now supports Redcarpet 2.

    As an aside I am using Redcarpet with Rouge until Kramdown support is available.

    In addition some people prefer Nanoc to Jekyll.

提交回复
热议问题