Update render_markdown to work without html_safe
This commit is contained in:
@ -42,9 +42,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def render_markdown(markdown)
|
def render_markdown(markdown)
|
||||||
# rubocop:disable Rails/OutputSafety
|
sanitize Kramdown::Document.new(markdown).to_html
|
||||||
Kramdown::Document.new(markdown).to_html.html_safe
|
|
||||||
# rubocop:enable Rails/OutputSafety
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def row(options = {}, &block)
|
def row(options = {}, &block)
|
||||||
|
Reference in New Issue
Block a user