the final fix

This commit is contained in:
2023-01-08 19:07:59 +02:00
parent 4e9f42074e
commit 7c43122b4a
6 changed files with 25 additions and 243 deletions

View File

@@ -1,5 +1,5 @@
import type { PageServerLoad } from "./$types";
import { compile } from "mdsvex";
import { marked } from "marked";
import sanitizeHtml from "sanitize-html";
import { db } from "$lib/server/db";
@@ -13,7 +13,7 @@ export const load: PageServerLoad = async () => {
return {
announcements: data[0],
content: compile(sanitizedContent).then((compiled) => compiled?.code)
content: marked(sanitizedContent)
}
}
};