しばらくの間、Octopress で kramdown を使用しています。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 で確認できます。
私は以下を使用しましたが、CodeRay css をレンダリングしないように、html にタグを追加したものはありませんでした。
~~~
def hello
puts "hello world"
end
~~~
{:lang="ruby"}
インデント:
puts "hello world"
{:lang="ruby"}
Octopress に CodeRay を追加する方法を誰か教えてもらえますか?
この投稿をフォローしています。
前もって感謝します。