MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / renderCodeBlock

Function renderCodeBlock

src/common/markdown-block.ts:368–373  ·  view source on GitHub ↗
(block: TaggedCodeBlock)

Source from the content-addressed store, hash-verified

366}
367
368function renderCodeBlock(block: TaggedCodeBlock): StyledBlock {
369 return {
370 tag: 'block',
371 spans: block.lines.flatMap((line) => renderSpans(line.content)),
372 };
373}
374
375// function renderCallout(block: TaggedCallout): StyledBlock {
376// return {

Callers 1

renderMarkdownBlockFunction · 0.85

Calls 1

renderSpansFunction · 0.85

Tested by

no test coverage detected