Skip to content

Commit 4c6925f

Browse files
committed
markdown: do not filter html. admins and editors are allowed to use html.
1 parent f5eac30 commit 4c6925f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vendor/engines/your_platform/app/helpers/markdown_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module MarkdownHelper
66
# * http://daringfireball.net/projects/markdown/syntax
77
#
88
def markdown(text, options = nil)
9-
options ||= { hard_wrap: true, filter_html: true, autolink: true, no_intraemphasis: true, fenced_code: true, gh_blockcode: true }
10-
Redcarpet::Markdown.new(Redcarpet::Render::HTML, options).render(sanitize(text) || "").html_safe
9+
options ||= { hard_wrap: true, filter_html: false, autolink: true, no_intraemphasis: true, fenced_code: true, gh_blockcode: true }
10+
Redcarpet::Markdown.new(Redcarpet::Render::HTML, options).render(text || "").html_safe
1111
end
1212
end
1313

0 commit comments

Comments
 (0)