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

Function wrapSegmentsInFragments

cli/src/utils/markdown-renderer.tsx:35–42  ·  view source on GitHub ↗
(
  segments: ReactNode[],
  keyPrefix: string,
)

Source from the content-addressed store, hash-verified

33
34// Helper to wrap segments in KeyedFragments
35const wrapSegmentsInFragments = (
36 segments: ReactNode[],
37 keyPrefix: string,
38): ReactNode => {
39 return segments.map((segment, idx) => (
40 <KeyedFragment key={keyPrefix + '-' + idx}>{segment}</KeyedFragment>
41 ))
42}
43
44export interface MarkdownPalette {
45 inlineCodeFg: string

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected