lib/lookbook/markdown.rb in lookbook-1.1.1 vs lib/lookbook/markdown.rb in lookbook-1.2.0

- old
+ new

@@ -1,21 +1,11 @@ require "redcarpet" module Lookbook class Markdown - DEFAULT_OPTIONS = { - tables: true, - fenced_code_blocks: true, - disable_indented_code_blocks: true, - strikethrough: true, - highlight: true, - with_toc_data: true, - lax_spacing: true - } - def self.render(text) Utils.strip_action_view_annotations!(text) - markdown = Redcarpet::Markdown.new(Renderer, Lookbook.config.markdown_options) + markdown = Redcarpet::Markdown.new(Renderer, Lookbook.config.markdown_options.to_h) markdown.render(text).html_safe end class Renderer < Redcarpet::Render::HTML def block_code(code, language = "ruby")