the final fix

This commit is contained in:
akis committed 2023-01-08 19:07:59 +02:00
1 parent 4e9f42074e
commit 7c43122b4a
6 files changed
+25 -243

No files matched your search

+2 -2
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)
}
}
};