mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-31 17:20:44 +08:00
Allow alt and title attributes for <img> tags in markdown
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@
|
||||
return xss(marked.parse(content), {
|
||||
whiteList: {
|
||||
...getDefaultWhiteList(),
|
||||
img: ["src"],
|
||||
img: ["src", "alt", "title"],
|
||||
audio: ["src"],
|
||||
video: ["src"],
|
||||
a: ["href", "name"],
|
||||
|
||||
Reference in New Issue
Block a user