Upgrade node dependencies and add necessary fixes

This commit is contained in:
2024-06-11 09:38:56 +02:00
parent 29d57934a1
commit 83883567a2
3 changed files with 14 additions and 5 deletions

View File

@@ -139,8 +139,8 @@ const postprocess = (html: string): string => {
}
const convertMarkdownToHtml = (markdown: string): string => {
marked.use({'hooks': {postprocess, preprocess}});
const rawHtml = marked(markdown);
marked.use({'hooks': {postprocess, preprocess}, 'async': false});
const rawHtml = marked(markdown) as string;
return rawHtml;
};