MCPcopy Create free account
hub / github.com/Noumena-Network/code / MarkdownWithHighlight

Function MarkdownWithHighlight

src/components/Markdown.tsx:232–252  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

230 return t0;
231}
232function MarkdownWithHighlight(props) {
233 const $ = _c(4);
234 let t0;
235 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
236 t0 = getCliHighlightPromise();
237 $[0] = t0;
238 } else {
239 t0 = $[0];
240 }
241 const highlight = use(t0);
242 let t1;
243 if ($[1] !== highlight || $[2] !== props) {
244 t1 = <MarkdownBody {...props} highlight={highlight} />;
245 $[1] = highlight;
246 $[2] = props;
247 $[3] = t1;
248 } else {
249 t1 = $[3];
250 }
251 return t1;
252}
253function MarkdownBody(t0) {
254 const $ = _c(8);
255 const {

Callers

nothing calls this directly

Calls 1

getCliHighlightPromiseFunction · 0.85

Tested by

no test coverage detected