MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getDisplayText

Function getDisplayText

source code/utils/markdown.ts:211–217  ·  view source on GitHub ↗
(tokens: Token[] | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

formatTokenFunction · 0.85

Calls 1

formatTokenFunction · 0.85

Tested by

no test coverage detected