MCPcopy Index your code
hub / github.com/code-hike/codehike / rscToHTML

Function rscToHTML

packages/codehike/tests/utils.ast.tsx:106–116  ·  view source on GitHub ↗
(children: any)

Source from the content-addressed store, hash-verified

104}
105
106async function rscToHTML(children: any) {
107 const stream = await renderToReadableStream(children)
108 await stream.allReady
109 const response = new Response(stream)
110 const html = await response.text()
111
112 return await prettier.format(html.replace(new RegExp("<!-- -->", "g"), ""), {
113 htmlWhitespaceSensitivity: "ignore",
114 parser: "html",
115 })
116}

Callers 1

renderHTMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…