diff --git a/mix.exs b/mix.exs index 6d2bd77a1..e7f491997 100644 --- a/mix.exs +++ b/mix.exs @@ -191,7 +191,9 @@ defmodule Pleroma.Mixfile do {:ecto_psql_extras, "~> 0.6"}, {:elasticsearch, git: "https://akkoma.dev/AkkomaGang/elasticsearch-elixir.git", ref: "main"}, - {:mfm_parser, git: "https://akkoma.dev/AkkomaGang/mfm-parser.git", ref: "5054e0ba1ebcbd9a7916aec219528e3e58057241" }, + {:mfm_parser, + git: "https://akkoma.dev/AkkomaGang/mfm-parser.git", + ref: "5054e0ba1ebcbd9a7916aec219528e3e58057241"}, # indirect dependency version override {:plug, "~> 1.10.4", override: true}, diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index 9dbaa1e86..68ac06e32 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -57,6 +57,7 @@ defmodule Pleroma.HTML.Scrubber.Default do Meta.allow_tag_with_these_attributes(:ul, []) Meta.allow_tags_with_style_attributes([:span]) + Meta.allow_tag_with_this_attribute_values(:span, "class", [ "h-card", "quote-inline", diff --git a/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs b/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs index 919e46faf..c766414a6 100644 --- a/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs +++ b/test/pleroma/web/activity_pub/object_validators/article_note_page_validator_test.exs @@ -113,7 +113,9 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.ArticleNotePageValidatorTest "@full_tag_remote_user" assert content =~ "@oops_not_a_mention" - assert content =~ "mfm goes here

aaa" + + assert content =~ + "mfm goes here

aaa" end test "a misskey MFM status with a _misskey_content field should work and be linked", _ do