server-ts: Fix build errors

This commit is contained in:
Elian Doran
2024-04-03 00:02:51 +03:00
parent 0daa4cc89a
commit e96b56e061
4 changed files with 12 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ import importUtils = require('./utils');
function renderToHtml(content: string, title: string) {
const html = marked.parse(content, {
async: false
}); // FIXME: mangle and headerIds does not seem to exist in marked
}) as string; // FIXME: mangle and headerIds does not seem to exist in marked
const h1Handled = importUtils.handleH1(html, title); // h1 handling needs to come before sanitization
return htmlSanitizer.sanitize(h1Handled);
}