lib/bhook/converter/html.rb in bhook-0.1.6 vs lib/bhook/converter/html.rb in bhook-0.2.0

- old
+ new

@@ -23,17 +23,15 @@ end sig { params(el: Kramdown::Element, indent: Integer).returns(String) } def convert_header(el, indent) header = super(el, indent) - after_h1_strategy = @options[:after_h1_strategy] - h1_callback = @options[:h1_callback] src_title = el.options[:raw_text] - after_h1_html = after_h1_strategy.call(binding) + after_h1_html = @options[:after_h1_strategy].call(binding) level = output_header_level(el.options[:level]) if level == 1 - h1_callback.call(src_title) + @options[:h1_callback].call(src_title) "#{header}#{' ' * indent}#{after_h1_html}" else header end end