Blog V1 (functionnal)

Need to clean TS code / replace placeholders / Design V1 to-do
This commit is contained in:
Michael
2022-01-17 21:59:55 +01:00
parent 689aeec8eb
commit 8aede6e33e
28 changed files with 1271 additions and 3 deletions

7
lib/markdownToHtml.ts Normal file
View File

@@ -0,0 +1,7 @@
import html from 'remark-html';
import { remark } from 'remark';
export default async function markdownToHtml(markdown: string) {
const result = await remark().use(html).process(markdown);
return result.toString();
}