lib/lookbook/markdown.rb in lookbook-1.0.8 vs lib/lookbook/markdown.rb in lookbook-1.1.0
- old
+ new
@@ -11,10 +11,10 @@
with_toc_data: true,
lax_spacing: true
}
def self.render(text)
- text&.gsub!(/<!-- (BEGIN|END) (.*) -->/, "")
+ Utils.strip_action_view_annotations!(text)
markdown = Redcarpet::Markdown.new(Renderer, Lookbook.config.markdown_options)
markdown.render(text).html_safe
end
class Renderer < Redcarpet::Render::HTML