summaryrefslogtreecommitdiff
path: root/src/util/markdown.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-27 17:37:10 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-27 17:37:10 +0000
commit35398241dea769bd7554eaca0a9045801c847340 (patch)
tree8793eca2c6bfd6aa630e29a175aba7dfa413a3bb /src/util/markdown.ts
parentec0bf2d6a9e74fd68febe9c09ba1997858ec3d7f (diff)
Update dependencies to latest versions
Diffstat (limited to 'src/util/markdown.ts')
-rw-r--r--src/util/markdown.ts2
1 files changed, 1 insertions, 1 deletions
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);