]> cat aescling's git repositories - mastodon.git/commitdiff
Add support for lists in statuses
authorThibaut Girka <thib@sitedethib.com>
Sun, 21 Apr 2019 20:04:19 +0000 (22:04 +0200)
committerThibG <thib@sitedethib.com>
Mon, 22 Apr 2019 21:07:14 +0000 (23:07 +0200)
app/javascript/flavours/glitch/styles/components/status.scss
app/lib/sanitize_config.rb

index 91467c8865212cca6097b8f0e7e4bad7ae32c634..c09e3398d3c0aceae45f1e7ecb907dda5d17cf58 100644 (file)
     em, i {
       font-style: italic;
     }
+
+    ul, ol {
+      margin-left: 1em;
+    }
+
+    ul {
+      list-style-type: disc;
+    }
+
+    ol {
+      list-style-type: decimal;
+    }
   }
 
   a {
index 7c376c412ca2ade4a9aef1f213ce3128891f1fb8..0a87bf6dfb22c6317d3955e3ba57664f0349bc24 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),
+      elements: %w(p br span a abbr del pre blockquote code b strong i em h1 h2 h3 h4 h5 ul ol li),
 
       attributes: {
         'a'          => %w(href rel class title),