From 5f406072495a16fa88f002e2f3ad03c8a4f99df8 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Thu, 4 Oct 2018 19:34:29 +0300 Subject: [PATCH] Add aside and abbr tags to markdown whitelist (#818) --- app/labor/markdown_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/labor/markdown_parser.rb b/app/labor/markdown_parser.rb index 4440ec9b4..f18667e9c 100644 --- a/app/labor/markdown_parser.rb +++ b/app/labor/markdown_parser.rb @@ -14,7 +14,7 @@ class MarkdownParser return if @content.blank? renderer = Redcarpet::Render::HTMLRouge.new(hard_wrap: true, filter_html: false) markdown = Redcarpet::Markdown.new(renderer, REDCARPET_CONFIG) - tag_whitelist = %w(strong em p h1 h2 h3 h4 h5 h6 i u b code pre + tag_whitelist = %w(strong abbr aside em p h1 h2 h3 h4 h5 h6 i u b code pre br ul ol li small sup sub img a span hr blockquote) attribute_whitelist = %w(href strong em ref rel src title alt class) ActionController::Base.helpers.sanitize markdown.render(@content).html_safe,