th: sanitizer config: add quote-inline span to allowlist

This commit is contained in:
Ariadne Conill 2022-12-25 02:48:52 +00:00
parent 900abce926
commit 9c60149f15

View file

@ -31,6 +31,7 @@ class Sanitize
next true if /^(h|p|u|dt|e)-/.match?(e) # microformats classes next true if /^(h|p|u|dt|e)-/.match?(e) # microformats classes
next true if /^(mention|hashtag)$/.match?(e) # semantic classes next true if /^(mention|hashtag)$/.match?(e) # semantic classes
next true if /^(ellipsis|invisible)$/.match?(e) # link formatting classes next true if /^(ellipsis|invisible)$/.match?(e) # link formatting classes
next true if /^quote-inline$/.match?(e) # quote inline classes
end end
node['class'] = class_list.join(' ') node['class'] = class_list.join(' ')