我在Octopress中使用了一段时间。我想将CodeRay添加到我的Octopress中。我安装了coderay。
➜ octopress git:(source) ✗ sudo gem install coderay
Password:
Successfully installed coderay-1.0.9
1 gem installed
Installing ri documentation for coderay-1.0.9...
Installing RDoc documentation for coderay-1.0.9...我更改了_config.yml
markdown: kramdown
kramdown:
use_coderay: true
coderay:
coderay_line_numbers: table
coderay_css: class我已经添加了sass/custom/_coderay-github.scss,我可以在我的CSS中看到它们。
我使用了以下代码,但它们都没有向我的html添加标记,因此它不会呈现CodeRay css。
~~~
def hello
puts "hello world"
end
~~~
{:lang="ruby"}缩进:
puts "hello world"
{:lang="ruby"}谁能告诉我如何将CodeRay添加到我的Octopress中?
我正在关注这个post。
提前谢谢你。
发布于 2013-07-07 07:13:53
https://stackoverflow.com/questions/17365726
复制相似问题