silverwolf-x's picture
download
raw
277 Bytes
import type { VFileCompatible } from "vfile";
import { remark } from "remark";
import html from "remark-html";
export default async function markdownToHtml(markdown: VFileCompatible) {
const result = await remark().use(html).process(markdown);
return result.toString();
}

Xet Storage Details

Size:
277 Bytes
·
Xet hash:
ae09a3a0d58c1378ec0ec5523b1c50224f6cab56ad165e76be4366caef942948

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.