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

Function getDisplayText

src/utils/markdown.ts:209–215  ·  view source on GitHub ↗
(tokens: Token[] | undefined)

Source from the content-addressed store, hash-verified

207
208 // Helper function to get the text content that will be displayed (after stripAnsi)
209 function getDisplayText(tokens: Token[] | undefined): string {
210 return stripAnsi(
211 tokens
212 ?.map(_ => formatToken(_, theme, 0, null, null, highlight))
213 .join('') ?? '',
214 )
215 }
216
217 // Determine column widths based on displayed content (without formatting)
218 const columnWidths = tableToken.header.map((header, index) => {

Callers 1

formatTokenFunction · 0.85

Calls 2

stripAnsiFunction · 0.85
formatTokenFunction · 0.85

Tested by

no test coverage detected