Only complain about `coderay` if it is actually in the config
Don't complain about the deprecated `kramdown.coderay` key when `highlighter == "coderay"`, since that could have been set with the legitimate `syntax_highlighter: coderay` setting. Instead, complain only if the `kramdown.coderay` configuration setting is actually present.
This commit is contained in:
parent
7a9427ccec
commit
054b23f69a
|
@ -104,7 +104,7 @@ module Jekyll
|
||||||
|
|
||||||
private
|
private
|
||||||
def modernize_coderay_config
|
def modernize_coderay_config
|
||||||
if highlighter == "coderay"
|
unless @config["coderay"].empty?
|
||||||
Jekyll::Deprecator.deprecation_message(
|
Jekyll::Deprecator.deprecation_message(
|
||||||
"You are using 'kramdown.coderay' in your configuration, " \
|
"You are using 'kramdown.coderay' in your configuration, " \
|
||||||
"please use 'syntax_highlighter_opts' instead."
|
"please use 'syntax_highlighter_opts' instead."
|
||||||
|
|
Loading…
Reference in New Issue