该化身文档指出代码高亮使用液体标签做如下:
{% highlight ruby %} def show @widget = Widget(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @widget } end end {% endhighlight %}
但是,我更愿意使用Markdown语法:
```ruby def foo puts 'foo' end ```
我自己尝试了以下方式:
``` ini ; Disables the splash screen, if it has been compiled into the launcher. RunLocally=true ```
但是,结果看起来并不应该如此.
我必须将以下内容添加到我的_config.yml中,以使我的GitHub Pages语法突出显示起作用:
markdown: redcarpet extensions: [fenced_code_blocks]
我不知道为什么fenced_code_blocks
GitHub页面需要它,因为它应该默认在Jekyll中启用.