mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 01:10:01 +00:00
8 lines
222 B
TypeScript
8 lines
222 B
TypeScript
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();
|
|
}
|