Commit 3d2b6a3d authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix methods visibility in markdown filter class

parent 4d9b34bb
...@@ -12,7 +12,12 @@ module Banzai ...@@ -12,7 +12,12 @@ module Banzai
html html
end end
private def self.renderer
@renderer ||= begin
renderer = Redcarpet::Render::HTML.new
Redcarpet::Markdown.new(renderer, redcarpet_options)
end
end
def self.redcarpet_options def self.redcarpet_options
# https://github.com/vmg/redcarpet#and-its-like-really-simple-to-use # https://github.com/vmg/redcarpet#and-its-like-really-simple-to-use
...@@ -28,12 +33,7 @@ module Banzai ...@@ -28,12 +33,7 @@ module Banzai
}.freeze }.freeze
end end
def self.renderer private_class_method :redcarpet_options
@renderer ||= begin
renderer = Redcarpet::Render::HTML.new
Redcarpet::Markdown.new(renderer, redcarpet_options)
end
end
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment