projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow small/center tags in misskeymarkdown (#132)
[akkoma]
/
priv
/
scrubbers
/
default.ex
diff --git
a/priv/scrubbers/default.ex
b/priv/scrubbers/default.ex
index 0893b17e50d393de0d662044250bd87e4db3a2b5..478cbde9bef47ad1d5ee06c196aebd7bc64afca2 100644
(file)
--- a/
priv/scrubbers/default.ex
+++ b/
priv/scrubbers/default.ex
@@
-59,6
+59,8
@@
defmodule Pleroma.HTML.Scrubber.Default do
Meta.allow_tag_with_this_attribute_values(:span, "class", ["h-card"])
Meta.allow_tag_with_these_attributes(:span, [])
Meta.allow_tag_with_this_attribute_values(:span, "class", ["h-card"])
Meta.allow_tag_with_these_attributes(:span, [])
+ Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])
+
@allow_inline_images Pleroma.Config.get([:markup, :allow_inline_images])
if @allow_inline_images do
@allow_inline_images Pleroma.Config.get([:markup, :allow_inline_images])
if @allow_inline_images do
@@
-95,5
+97,8
@@
defmodule Pleroma.HTML.Scrubber.Default do
Meta.allow_tag_with_these_attributes(:font, ["face"])
end
Meta.allow_tag_with_these_attributes(:font, ["face"])
end
+ Meta.allow_tag_with_these_attributes(:center, [])
+ Meta.allow_tag_with_these_attributes(:small, [])
+
Meta.strip_everything_not_covered()
end
Meta.strip_everything_not_covered()
end