我现在用的是杰基尔-靴带。在我的本地环境中,我可以在jekyll的CodeRay中启用_config.yml,并在我的帖子中使用它,没有任何问题。但是相同的代码不能在github上工作。
我的_config.yml (省略了jekyll-bootstrap吐露):
# 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发布于 2013-10-14 09:47:19
GithHb页面运行最小的ruby / ruby配置,它还将覆盖一些_config.yml设置--参见https://help.github.com/articles/using-jekyll-with-pages获取更多信息。
一种方法是在本地构建,然后绕过GitGub的Jekyll配置将生成的输出与GitHub页面同步。
发布于 2013-10-14 10:26:28
您可以在github页面上使用kramdown和coderay。只需包括
markdown: kramdown
kramdown:
use_coderay: true在你的_config.yml里。
https://stackoverflow.com/questions/19332876
复制相似问题