lib/lookbook/markdown.rb in lookbook-0.9.1 vs lib/lookbook/markdown.rb in lookbook-0.9.2

- old
+ new

@@ -10,9 +10,10 @@ highlight: true, with_toc_data: true } def self.render(text) + text&.gsub!("<!-- BEGIN inline template -->", "")&.gsub!("<!-- END inline template -->", "") markdown = Redcarpet::Markdown.new(Renderer, Lookbook.config.markdown_options) markdown.render(text).html_safe end class Renderer < Redcarpet::Render::HTML