From 317fa43d9a696db353612269cb35b7741a3dfc64 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Wed, 14 Aug 2019 22:26:30 +0200 Subject: [PATCH] Add support for formatting element This is based of 3e095cab83f3e88c5f5f4ca9d7029379ed5b5b56 Related: https://git.pleroma.social/pleroma/pleroma/issues/1191 --- app/javascript/flavours/glitch/styles/components/status.scss | 5 +++++ app/lib/sanitize_config.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/styles/components/status.scss b/app/javascript/flavours/glitch/styles/components/status.scss index d0183c2de6..5db93ac3bb 100644 --- a/app/javascript/flavours/glitch/styles/components/status.scss +++ b/app/javascript/flavours/glitch/styles/components/status.scss @@ -81,6 +81,11 @@ text-align: sub; } + sup { + font-size: smaller; + vertical-align: supper; + } + ul, ol { margin-left: 1em; diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index e6e861eb9c..956c464f76 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),