lib/bunto/converters/markdown/kramdown_parser.rb in bunto-3.2.1 vs lib/bunto/converters/markdown/kramdown_parser.rb in bunto-3.4.5
- old
+ new
@@ -9,11 +9,11 @@
"css" => "style",
"bold_every" => 10,
"line_numbers" => "inline",
"line_number_start" => 1,
"tab_width" => 4,
- "wrap" => "div"
+ "wrap" => "div",
}.freeze
def initialize(config)
Bunto::External.require_with_graceful_fail "kramdown"
@main_fallback_highlighter = config["highlighter"] || "rouge"
@@ -102,10 +102,10 @@
# with your "coderay" key if it's there, deprecating it in the
# process of you using it.
private
def modernize_coderay_config
- if highlighter == "coderay"
+ unless @config["coderay"].empty?
Bunto::Deprecator.deprecation_message(
"You are using 'kramdown.coderay' in your configuration, " \
"please use 'syntax_highlighter_opts' instead."
)