wip: some progress on markdown; cleaning up code using html-react-parser and its dependencies

This commit is contained in:
2024-05-11 21:54:16 +10:00
parent a828c62e71
commit 49e9fa8bc6
11 changed files with 251 additions and 635 deletions

View File

@@ -8,14 +8,6 @@ export async function MarkPostString() {
return await readFile(path, "utf-8")
}
export async function DummyPostString() {
let path = ""
if ('DUMMY_HTML_DIR' in process.env && typeof process.env.DUMMY_HTML_DIR === "string") {
path = process.env.DUMMY_HTML_DIR + "test1.html";
}
return await readFile(path, "utf-8")
}
export function DummyPostSlug() {
return "dummy-post"
}