diff options
Diffstat (limited to 'src/util/markdown.ts')
-rw-r--r-- | src/util/markdown.ts | 2 |
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); |