mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
scrubbers/default: Add ruby element and it's childs
This allows to format Japanese furigana (aka ruby) notation. Present in XHTML 1.1, HTML 5 and later. Absent in XHTML 1.0, HTML 4 and earlier. See https://www.w3.org/TR/ruby/
This commit is contained in:
parent
e07f8f8aa5
commit
3cfc20083e
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ defmodule Pleroma.HTML.Scrubber.Default do
|
||||||
Meta.allow_tag_with_these_attributes(:strong, [])
|
Meta.allow_tag_with_these_attributes(:strong, [])
|
||||||
Meta.allow_tag_with_these_attributes(:sub, [])
|
Meta.allow_tag_with_these_attributes(:sub, [])
|
||||||
Meta.allow_tag_with_these_attributes(:sup, [])
|
Meta.allow_tag_with_these_attributes(:sup, [])
|
||||||
|
Meta.allow_tag_with_these_attributes(:ruby, [])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rb, [])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rp, [])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rt, [])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rtc, [])
|
||||||
Meta.allow_tag_with_these_attributes(:u, [])
|
Meta.allow_tag_with_these_attributes(:u, [])
|
||||||
Meta.allow_tag_with_these_attributes(:ul, [])
|
Meta.allow_tag_with_these_attributes(:ul, [])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue