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:
Rūdolfs Ošiņš
2022-09-21 11:25:39 +02:00
parent 7f3ca6afdb
commit 37f6f7d15b
+1 -1
View File
@@ -23,7 +23,7 @@
return xss(marked.parse(content), {
whiteList: {
...getDefaultWhiteList(),
img: ["src"],
img: ["src", "alt", "title"],
audio: ["src"],
video: ["src"],
a: ["href", "name"],