reorganize mfm attributes in order they're listed in misskey repo, add missing ones
This commit is contained in:
parent
093b156c65
commit
1a13ec539b
1 changed files with 28 additions and 21 deletions
|
|
@ -83,48 +83,55 @@ defmodule Pleroma.HTML.Scrubber.Default do
|
||||||
"quote-inline",
|
"quote-inline",
|
||||||
"invisible",
|
"invisible",
|
||||||
"ellipsis",
|
"ellipsis",
|
||||||
"mfm-center",
|
"mfm-tada",
|
||||||
"mfm-flip",
|
|
||||||
"mfm-font",
|
|
||||||
"mfm-blur",
|
|
||||||
"mfm-rotate",
|
|
||||||
"mfm-x2",
|
|
||||||
"mfm-x3",
|
|
||||||
"mfm-x4",
|
|
||||||
"mfm-position",
|
|
||||||
"mfm-scale",
|
|
||||||
"mfm-fg",
|
|
||||||
"mfm-bg",
|
|
||||||
"mfm-jelly",
|
"mfm-jelly",
|
||||||
"mfm-twitch",
|
"mfm-twitch",
|
||||||
"mfm-shake",
|
"mfm-shake",
|
||||||
"mfm-spin",
|
"mfm-spin",
|
||||||
"mfm-jump",
|
"mfm-jump",
|
||||||
"mfm-bounce",
|
"mfm-bounce",
|
||||||
|
"mfm-flip",
|
||||||
|
"mfm-x2",
|
||||||
|
"mfm-x3",
|
||||||
|
"mfm-x4",
|
||||||
|
"mfm-scale",
|
||||||
|
"mfm-position",
|
||||||
|
"mfm-fg",
|
||||||
|
"mfm-bg",
|
||||||
|
"mfm-border",
|
||||||
|
"mfm-font",
|
||||||
|
"mfm-blur",
|
||||||
"mfm-rainbow",
|
"mfm-rainbow",
|
||||||
"mfm-tada",
|
"mfm-sparkle",
|
||||||
"mfm-sparkle"
|
"mfm-rotate",
|
||||||
|
"mfm-ruby",
|
||||||
|
"mfm-unixtime",
|
||||||
])
|
])
|
||||||
|
|
||||||
Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"])
|
Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"])
|
||||||
|
|
||||||
Meta.allow_tag_with_these_attributes(:span, [
|
Meta.allow_tag_with_these_attributes(:span, [
|
||||||
"lang",
|
"lang",
|
||||||
"data-mfm-h",
|
"data-mfm-speed",
|
||||||
"data-mfm-v",
|
"data-mfm-delay",
|
||||||
|
"data-mfm-left",
|
||||||
|
"data-mfm-alternate",
|
||||||
"data-mfm-x",
|
"data-mfm-x",
|
||||||
"data-mfm-y",
|
"data-mfm-y",
|
||||||
"data-mfm-alternate",
|
"data-mfm-h",
|
||||||
"data-mfm-speed",
|
"data-mfm-v",
|
||||||
"data-mfm-deg",
|
"data-mfm-color",
|
||||||
"data-mfm-left",
|
"data-mfm-width",
|
||||||
|
"data-mfm-style",
|
||||||
|
"data-mfm-radius",
|
||||||
|
"data-mfm-noclip",
|
||||||
"data-mfm-serif",
|
"data-mfm-serif",
|
||||||
"data-mfm-monospace",
|
"data-mfm-monospace",
|
||||||
"data-mfm-cursive",
|
"data-mfm-cursive",
|
||||||
"data-mfm-fantasy",
|
"data-mfm-fantasy",
|
||||||
"data-mfm-emoji",
|
"data-mfm-emoji",
|
||||||
"data-mfm-math",
|
"data-mfm-math",
|
||||||
"data-mfm-color"
|
"data-mfm-deg",
|
||||||
])
|
])
|
||||||
|
|
||||||
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