MCPcopy
hub / github.com/vercel/next.js / markdownToHtml

Function markdownToHtml

examples/cms-datocms/lib/markdownToHtml.js:4–7  ·  view source on GitHub ↗
(markdown)

Source from the content-addressed store, hash-verified

2import html from "remark-html";
3
4export default async function markdownToHtml(markdown) {
5 const result = await remark().use(html).process(markdown);
6 return result.toString();
7}

Callers 1

[slug].jsFile · 0.50

Calls 2

processMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected