Change display of quote posts to strip fallback link and preview cards (#34772)
This commit is contained in:
parent
3acd87419c
commit
02ac18da51
4 changed files with 27 additions and 4 deletions
|
@ -31,6 +31,7 @@ class Sanitize
|
|||
next true if /^(h|p|u|dt|e)-/.match?(e) # microformats classes
|
||||
next true if /^(mention|hashtag)$/.match?(e) # semantic classes
|
||||
next true if /^(ellipsis|invisible)$/.match?(e) # link formatting classes
|
||||
next true if e == 'quote-inline'
|
||||
end
|
||||
|
||||
node['class'] = class_list.join(' ')
|
||||
|
@ -110,6 +111,7 @@ class Sanitize
|
|||
'span' => %w(class translate),
|
||||
'ol' => %w(start reversed),
|
||||
'li' => %w(value),
|
||||
'p' => %w(class),
|
||||
},
|
||||
|
||||
add_attributes: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue