b5cc91e2ba
## Documentation / Examples - Adding TInaCMS example using the traditional CMS example Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
7 lines
210 B
JavaScript
7 lines
210 B
JavaScript
import { remark } from 'remark'
|
|
import html from 'remark-html'
|
|
|
|
export default async function markdownToHtml(markdown) {
|
|
const result = await remark().use(html).process(markdown)
|
|
return result.toString()
|
|
}
|