MCPcopy Index your code
hub / github.com/codeaashu/claude-code / MarkdownWithHighlight

Function MarkdownWithHighlight

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

Source from the content-addressed store, hash-verified

100 return t0;
101}
102function MarkdownWithHighlight(props) {
103 const $ = _c(4);
104 let t0;
105 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
106 t0 = getCliHighlightPromise();
107 $[0] = t0;
108 } else {
109 t0 = $[0];
110 }
111 const highlight = use(t0);
112 let t1;
113 if ($[1] !== highlight || $[2] !== props) {
114 t1 = <MarkdownBody {...props} highlight={highlight} />;
115 $[1] = highlight;
116 $[2] = props;
117 $[3] = t1;
118 } else {
119 t1 = $[3];
120 }
121 return t1;
122}
123function MarkdownBody(t0) {
124 const $ = _c(7);
125 const {

Callers

nothing calls this directly

Calls 1

getCliHighlightPromiseFunction · 0.85

Tested by

no test coverage detected