From 054b23f69a47c9f4d8f696aa0a3a90bfa551561e Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 19 Sep 2016 11:23:05 -0500 Subject: [PATCH] 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. --- lib/jekyll/converters/markdown/kramdown_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/converters/markdown/kramdown_parser.rb b/lib/jekyll/converters/markdown/kramdown_parser.rb index 932cf24e..dd71c6c1 100644 --- a/lib/jekyll/converters/markdown/kramdown_parser.rb +++ b/lib/jekyll/converters/markdown/kramdown_parser.rb @@ -104,7 +104,7 @@ module Jekyll private def modernize_coderay_config - if highlighter == "coderay" + unless @config["coderay"].empty? Jekyll::Deprecator.deprecation_message( "You are using 'kramdown.coderay' in your configuration, " \ "please use 'syntax_highlighter_opts' instead."