Merge branch 'scrubber-inline-quotes-mastodon' into 'develop'
Scrubber: Allow `quote-inline` class in <p> tags used by Mastodon quotes See merge request pleroma/pleroma!4373
This commit is contained in:
commit
e74b6ed348
2 changed files with 3 additions and 0 deletions
1
changelog.d/scrubber-inline-quotes-mastodon.add
Normal file
1
changelog.d/scrubber-inline-quotes-mastodon.add
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Scrubber: Allow `quote-inline` class in <p> tags used by Mastodon quotes
|
||||||
|
|
@ -83,6 +83,8 @@ defmodule Pleroma.HTML.Scrubber.Default do
|
||||||
"quote-inline"
|
"quote-inline"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"])
|
||||||
|
|
||||||
Meta.allow_tag_with_these_attributes(:span, ["lang"])
|
Meta.allow_tag_with_these_attributes(:span, ["lang"])
|
||||||
|
|
||||||
Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])
|
Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue