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

Function renderInlineCode

cli/src/utils/markdown-renderer.tsx:612–628  ·  view source on GitHub ↗
(
  inlineCode: InlineCode,
  state: RenderState,
)

Source from the content-addressed store, hash-verified

610}
611
612const renderInlineCode = (
613 inlineCode: InlineCode,
614 state: RenderState,
615): ReactNode[] => {
616 const { palette, nextKey } = state
617 const content = inlineCode.value || ' '
618 return [
619 <span
620 key={nextKey()}
621 fg={palette.inlineCodeFg}
622 bg={palette.codeMonochrome ? undefined : palette.codeBackground}
623 attributes={TextAttributes.BOLD}
624 >
625 {` ${content} `}
626 </span>,
627 ]
628}
629
630const renderLink = (link: Link, state: RenderState): ReactNode[] => {
631 const { palette, nextKey } = state

Callers 1

renderNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected