]> cat aescling's git repositories - mastodon.git/commitdiff
Add support for missing formatting tags
authorThibaut Girka <thib@sitedethib.com>
Mon, 29 Apr 2019 17:00:27 +0000 (19:00 +0200)
committerThibG <thib@sitedethib.com>
Mon, 29 Apr 2019 17:31:09 +0000 (19:31 +0200)
app/javascript/flavours/glitch/styles/components/status.scss
app/lib/sanitize_config.rb

index 889bcaec04cda97701e72a3caf2edab7449cae75..b656f0baf7abc1a25ee9e7c78fcfaf6f9d6d719c 100644 (file)
       font-style: italic;
     }
 
+    sub {
+      font-size: smaller;
+      text-align: sub;
+    }
+
     ul, ol {
       margin-left: 1em;
 
index 0a87bf6dfb22c6317d3955e3ba57664f0349bc24..23d0a418fe9109ed4824a7b3a1c84f31876713a9 100644 (file)
@@ -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),