Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
mastofe
Commits
317fa43d
Commit
317fa43d
authored
Aug 14, 2019
by
Haelwenn
Committed by
ThibG
Aug 20, 2019
Browse files
Add support for <sup> formatting element
This is based of
3e095cab
Related:
pleroma#1191
parent
da7e0d4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/javascript/flavours/glitch/styles/components/status.scss
View file @
317fa43d
...
...
@@ -81,6 +81,11 @@
text-align
:
sub
;
}
sup
{
font-size
:
smaller
;
vertical-align
:
supper
;
}
ul
,
ol
{
margin-left
:
1em
;
...
...
app/lib/sanitize_config.rb
View file @
317fa43d
...
...
@@ -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)
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment