MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / renderNodes

Function renderNodes

cli/src/utils/markdown-renderer.tsx:464–476  ·  view source on GitHub ↗
(
  children: MarkdownNode[],
  state: RenderState,
  parentType: MarkdownNode['type'],
)

Source from the content-addressed store, hash-verified

462}
463
464const renderNodes = (
465 children: MarkdownNode[],
466 state: RenderState,
467 parentType: MarkdownNode['type'],
468): ReactNode[] => {
469 const results: ReactNode[] = []
470 for (let index = 0; index < children.length; index += 1) {
471 const child = children[index]
472 const nextSibling = children[index + 1] as MarkdownNode | undefined
473 results.push(...renderNode(child, state, parentType, nextSibling))
474 }
475 return results
476}
477
478const renderCodeBlock = (code: Code, state: RenderState): ReactNode[] => {
479 const { palette, nextKey } = state

Callers 5

renderBlockquoteFunction · 0.85
renderListFunction · 0.85
renderHeadingFunction · 0.85
renderLinkFunction · 0.85
renderNodeFunction · 0.85

Calls 1

renderNodeFunction · 0.85

Tested by

no test coverage detected