Pygments syntax highlighting in Jekyll without starting a

后端 未结 4 1405
心在旅途
心在旅途 2021-01-21 06:18

If you use Jekyll with the Pygments syntax-highlighting package, it’s possible to write

{% highlight clojure %}
(def something :foobar)
{% endhighlight %}
         


        
4条回答
  •  悲&欢浪女
    2021-01-21 07:06

    My quick workaround was letting Jekyll preprocess the code:

    And paste it into a desirable place after replacing divs with spans:

    
        
        
    

提交回复
热议问题