Add support for mark element in markdown (#2089)

This commit is contained in:
Bolarinwa Balogun 2019-03-18 17:10:58 -04:00 committed by Ben Halpern
parent da6a916412
commit 18d061a714

View file

@ -1,7 +1,7 @@
class RenderedMarkdownScrubber < Rails::Html::PermitScrubber
def initialize
super
self.tags = %w[a abbr add aside b blockquote br button center cite code col colgroup dd del dl dt em em figcaption h1 h2 h3 h4 h5 h6 hr i img kbd li ol p pre q rp rt ruby small source span strong sub sup table tbody td tfoot th thead time tr u ul video]
self.tags = %w[a abbr add aside b blockquote br button center cite code col colgroup dd del dl dt em em figcaption h1 h2 h3 h4 h5 h6 hr i img kbd li mark ol p pre q rp rt ruby small source span strong sub sup table tbody td tfoot th thead time tr u ul video]
self.attributes = %w[alt class colspan data-conversation data-lang data-no-instant data-url em height href id loop name ref rel rowspan size span src start strong title type value width]
end