Fix broken spec (#423)

This commit is contained in:
Mac Siri 2018-06-12 17:23:16 -04:00 committed by Ben Halpern
parent 8d36c74d3c
commit 82dfc57b63

View file

@ -34,7 +34,7 @@ class MarkdownParser
def evaluate_inline_markdown
return if @content.blank?
renderer = HtmlRouge.new(hard_wrap: true, filter_html: false)
renderer = Redcarpet::Render::HTMLRouge.new(hard_wrap: true, filter_html: false)
markdown = Redcarpet::Markdown.new(renderer, REDCARPET_CONFIG)
ActionController::Base.helpers.sanitize(markdown.render(@content).html_safe,
tags: %w(strong i u b em code a), attributes: ["href"])