feat: support Hollo's ruby related tags (#3350)

This commit is contained in:
TAKAHASHI Shuuji 2025-09-03 19:56:30 +09:00 committed by GitHub
parent d775008a5e
commit 455d967c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,11 @@ const sanitizer = sanitize({
li: {
value: keep,
},
// Hollo supports <ruby> tags
// https://github.com/fedify-dev/hollo/blob/80e7184aa805f579be8712ff9231be655343c661/src/xss.ts#L92-L94
ruby: {},
rp: {},
rt: {},
})
/**