Merge pull request 'Preserve mastodon-style quote-fallback marker' (#977) from mastodon-quotes into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/977
Reviewed-by: Oneric <oneric@noreply.akkoma>
This commit is contained in:
Oneric 2025-10-24 21:51:49 +00:00
commit 9d12c7c00c

View file

@ -58,8 +58,14 @@ defmodule Pleroma.HTML.Scrubber.Default do
Meta.allow_tag_with_these_attributes(:u, [])
Meta.allow_tag_with_these_attributes(:ul, [])
Meta.allow_tag_with_this_attribute_values(:p, "class", [
# mastodon-style quote fallbacks
"quote-inline"
])
Meta.allow_tag_with_this_attribute_values(:span, "class", [
"h-card",
# *oma-style quote fallbacks
"quote-inline",
# "FEP-c16b: Formatting MFM functions" tags that Akkoma supports
# NOTE: Maybe it would be better to have something like "allow `mfm-*`,