Have a deprecation fallback for 'use_coderay'

This commit is contained in:
Parker Moore 2014-12-26 22:16:47 -05:00
parent a103898980
commit f6bff6fb61
1 changed files with 6 additions and 0 deletions

View File

@ -254,6 +254,12 @@ module Jekyll
config[option].map!(&:to_s) config[option].map!(&:to_s)
end end
if (config['kramdown'] || {}).key?('use_coderay')
Jekyll::Deprecator.deprecation_message "Please change 'use_coderay'" +
" to 'enable_coderay' in your configuration file."
config['kramdown']['use_coderay'] = config['kramdown'].delete('enable_coderay')
end
if config.fetch('markdown', 'kramdown').to_s.downcase.eql?("maruku") if config.fetch('markdown', 'kramdown').to_s.downcase.eql?("maruku")
Jekyll::Deprecator.deprecation_message "You're using the 'maruku' " + Jekyll::Deprecator.deprecation_message "You're using the 'maruku' " +
"Markdown processor. Maruku support has been deprecated and will " + "Markdown processor. Maruku support has been deprecated and will " +