From 37f6f7d15bce79ae695935fdecff82920d368f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 13 Sep 2022 09:38:20 +0200 Subject: [PATCH] Allow `alt` and `title` attributes for tags in markdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- src/Markdown.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdown.svelte b/src/Markdown.svelte index 38f12ac23..cf4ebf3f0 100644 --- a/src/Markdown.svelte +++ b/src/Markdown.svelte @@ -23,7 +23,7 @@ return xss(marked.parse(content), { whiteList: { ...getDefaultWhiteList(), - img: ["src"], + img: ["src", "alt", "title"], audio: ["src"], video: ["src"], a: ["href", "name"],