1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
backup-websites-2024-01/lib/markdownToHTML.ts

9 lines
237 B
TypeScript

import { remark } from 'remark'
import html from 'remark-html'
const markdownToHTML = async (markdown: string) => {
const result = await remark().use(html).process(markdown)
return result.toString()
}
export default markdownToHTML