8783793273
* Replace `blog-starter` JS example with `blog-starter-typescript` * lint-fix, Revert pnpm-lock.yaml * Revert root readme.md * Add useful sections omitted from original Typescript convert Co-authored-by: JJ Kasper <jj@jjsweb.site>
7 lines
218 B
TypeScript
7 lines
218 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()
|
|
}
|