我現在在使用Jekyll-Bootstrap。在我的本地環境中,我可以在jekyll的_config.yml中啓用CodeRay,並在我的帖子中使用它,沒有任何問題。但是相同的代碼無法在github上運行。可以在github頁面中使用CodeRay嗎?
我_config.yml
(哲基爾引導CONFIGS省略):
# Use kramdown as markdown parser engine.
markdown: kramdown
markdown_ext: markdown,mkd,mkdn,md
textile_ext: textile
kramdown:
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
smart_quotes: lsquo,rsquo,ldquo,rdquo
use_coderay: true
coderay:
coderay_wrap: div
coderay_line_numbers: nil
coderay_tab_width: 4
coderay_bold_every: 10
coderay_css: class
我有完全相同的問題。 CodeRay在本地工作正常,但不在GitHub頁面上。自從你發佈這個問題以來,你是否在這個問題上取得了進展? – Hady
不,並且似乎使用CodeRay的唯一方法是遵循我標記爲已接受的答案。 – huandu