Add support for missing formatting tags

master
Thibaut Girka 5 years ago committed by ThibG
parent 67fb9a8679
commit 3e095cab83
  1. 5
      app/javascript/flavours/glitch/styles/components/status.scss
  2. 2
      app/lib/sanitize_config.rb

@ -69,6 +69,11 @@
font-style: italic;
}
sub {
font-size: smaller;
text-align: sub;
}
ul, ol {
margin-left: 1em;

@ -20,7 +20,7 @@ class Sanitize
end
MASTODON_STRICT ||= freeze_config(
elements: %w(p br span a abbr del pre blockquote code b strong i em h1 h2 h3 h4 h5 ul ol li),
elements: %w(p br span a abbr del pre blockquote code b strong u sub i em h1 h2 h3 h4 h5 ul ol li),
attributes: {
'a' => %w(href rel class title),

Loading…
Cancel
Save