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