我正在做 jekyll serve 并且有红色标记。 我将如何让这些消失:
Deprecation: Please change 'use_coderay' to 'enable_coderay' in your configuration file.
Deprecation: You are using 'kramdown.coderay' in your configuration, please use 'syntax_highlighter_opts' instead.
在我的配置文件中,我已经有了这些行:
kramdown:
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
use_coderay: enable_coderay
最佳答案
使用 syntax_highlighter: rouge
因为错误清楚地表明 kramdown.coderay 已弃用:
弃用:您在配置中使用“kramdown.coderay”,请改用“syntax_highlighter_opts”。
关于ruby-on-rails - jekyll ruby 上的 kramdown coderay syntax_highlighter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40615622/