Browse Source

Add support for <sup> formatting element

This is based of 3e095cab83

Related: https://git.pleroma.social/pleroma/pleroma/issues/1191
closed-social-glitch-2
Haelwenn (lanodan) Monnier 5 years ago
committed by ThibG
parent
commit
317fa43d9a
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      app/javascript/flavours/glitch/styles/components/status.scss
  2. +1
    -1
      app/lib/sanitize_config.rb

+ 5
- 0
app/javascript/flavours/glitch/styles/components/status.scss View File

@ -81,6 +81,11 @@
text-align: sub;
}
sup {
font-size: smaller;
vertical-align: supper;
}
ul, ol {
margin-left: 1em;

+ 1
- 1
app/lib/sanitize_config.rb View File

@ -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),

Loading…
Cancel
Save