class Lookbook::MarkdownRenderer
def call
def call clean_text = ActionViewAnnotationsStripper.call(text) md = Redcarpet::Markdown.new(LookbookMarkdownRenderer, opts) md.render(clean_text).html_safe end
def initialize(text, opts = {})
def initialize(text, opts = {}) @text = text @opts = Lookbook.config.markdown_options.merge(opts.to_h) end