gpt4 book ai didi

github - 是否可以在 github 页面中使用 CodeRay?

转载 作者:行者123 更新时间:2023-12-01 02:22:20 26 4
gpt4 key购买 nike

我现在正在使用 Jekyll-Bootstrap。在我的本地环境中,我可以在 jekyll 的 _config.yml 中启用 CodeRay 并在我的帖子中使用它,没有任何问题。但是同样的代码不能在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

最佳答案

您可以在 github 页面上将 kramdown 与 coderay 一起使用。只需包括

markdown: kramdown
kramdown:
use_coderay: true

在您的 _config.yml .

关于github - 是否可以在 github 页面中使用 CodeRay?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19332876/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com