about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-08-14 22:26:30 +0200
committerThibG <thib@sitedethib.com>2019-08-20 21:44:09 +0200
commit317fa43d9a696db353612269cb35b7741a3dfc64 (patch)
tree0812548f38f5c4e64dcd4534b299f6d7dd7c20aa /app/lib
parentda7e0d4f5536a43da88103320482a7b54eb8615b (diff)
Add support for <sup> formatting element
This is based of 3e095cab83f3e88c5f5f4ca9d7029379ed5b5b56

Related: https://git.pleroma.social/pleroma/pleroma/issues/1191
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/sanitize_config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb
index e6e861eb9..956c464f7 100644
--- a/app/lib/sanitize_config.rb
+++ b/app/lib/sanitize_config.rb
@@ -39,7 +39,7 @@ class Sanitize
     end
 
     MASTODON_STRICT ||= freeze_config(
-      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),
+      elements: %w(p br span a abbr del pre blockquote code b strong u sub sup i em h1 h2 h3 h4 h5 ul ol li),
 
       attributes: {
         'a'          => %w(href rel class title),