lib/kitabu/markdown.rb in kitabu-2.1.0 vs lib/kitabu/markdown.rb in kitabu-3.0.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Kitabu module Markdown class Renderer < Redcarpet::Render::HTML include Redcarpet::Render::SmartyPants include Rouge::Plugins::Redcarpet @@ -11,19 +13,19 @@ end renderer = Renderer.new(hard_wrap: true, safe_links_only: true) self.processor = Redcarpet::Markdown.new(renderer, { - tables: true, - footnotes: true, - space_after_headers: true, - superscript: true, - highlight: true, - strikethrough: true, - autolink: true, - fenced_code_blocks: true, - no_intra_emphasis: true - }) + tables: true, + footnotes: true, + space_after_headers: true, + superscript: true, + highlight: true, + strikethrough: true, + autolink: true, + fenced_code_blocks: true, + no_intra_emphasis: true + }) def self.render(text) processor.render(text) end end