Skip to content

Commit

Permalink
Add support for mark element in markdown (forem#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolariin authored and benhalpern committed Mar 18, 2019
1 parent da6a916 commit 18d061a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sanitizers/rendered_markdown_scrubber.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 18d061a

Please sign in to comment.