From 35398241dea769bd7554eaca0a9045801c847340 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Tue, 27 Feb 2024 17:37:10 +0000 Subject: Update dependencies to latest versions --- src/util/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/markdown.ts b/src/util/markdown.ts index bab50bd..666ed73 100644 --- a/src/util/markdown.ts +++ b/src/util/markdown.ts @@ -46,7 +46,7 @@ export const renderPlain = () => { }; export const markdownToSanitizedHTML = (markdown: string) => { - const html = marked.parse(markdown); + const html = marked.parse(markdown) as string; const window = new JSDOM("").window; const purify = DOMPurify(window); const clean = purify.sanitize(html); -- cgit v1.2.3