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:
Edward Thomson 2016-09-19 11:23:05 -05:00
parent 7a9427ccec
commit 054b23f69a
1 changed files with 1 additions and 1 deletions

View File

@ -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."