mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-05-31 14:12:04 +05:30
the final fix
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user