mirror of
https://github.com/supabase/supabase.git
synced 2026-07-05 02:24:20 +08:00
8 lines
214 B
TypeScript
8 lines
214 B
TypeScript
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()
|
|
}
|