mirror of
https://github.com/kremalicious/blog.git
synced 2024-06-28 16:48:00 +02:00
8 lines
262 B
TypeScript
8 lines
262 B
TypeScript
import { createMarkdownProcessor } from '@astrojs/markdown-remark'
|
|
|
|
export async function markdownToHtml(markdown: string): Promise<string> {
|
|
const processor = await createMarkdownProcessor()
|
|
const { code } = await processor.render(markdown)
|
|
return code
|
|
}
|