lib/notee/view_helper.rb in notee-0.2.9 vs lib/notee/view_helper.rb in notee-0.3.0

- old
+ new

@@ -4,10 +4,10 @@ module ViewHelper def notee_markdown(text) unless @markdown renderer = Redcarpet::Render::HTML.new(filter_html: true, hard_wrap: true) - @markdown = Redcarpet::Markdown.new(renderer) + @markdown = Redcarpet::Markdown.new(renderer, :fenced_code_blocks => true, :highlight => true) end @markdown.render(text).html_safe end