mirror of
https://github.com/fergalmoran/supanextail.git
synced 2026-01-04 07:35:58 +00:00
Blog V1 (functionnal)
Need to clean TS code / replace placeholders / Design V1 to-do
This commit is contained in:
7
lib/markdownToHtml.ts
Normal file
7
lib/markdownToHtml.ts
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user