Jekyll 没有以正确的方式呈现代码

Jekyll not rendering code in the right way

我有一个基于 jekyll now.But the issue I face is that the it is very difficult for me to write code here.I have already tried using <code> and ~~~ruby etc.None of them worked.This is the site for the blog.And this is the specific one I am looking at.This specifically is the repository 托管博客的博客。

Jekyll 中没有魔法。只需阅读 F.. 文档 (RTFM)。参见 http://jekyllrb.com/docs/templates/#code-snippet-highlighting

{% highlight ruby %}
def foo
  puts 'foo'
end
{% endhighlight %}

这很管用。

编辑:一定要在开始标签前留下一个新的空行

<p>He had implemented ...<p>

{% highlight ruby %}