b91e262
1
2
3
4
5
6
7
8
import { remark } from "remark"; import html from "remark-html"; export default async function markdownToHtml(markdown) { const result = await remark().use(html).process(markdown); return result.toString(); }