File size: 222 Bytes
1e92f2d
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import { remark } from "remark";
import html from "remark-html";

export default async function markdownToHtml(markdown: string) {
  const result = await remark().use(html).process(markdown);
  return result.toString();
}