MCPcopy Create free account
hub / github.com/Noumena-Network/code / getDisplayText

Function getDisplayText

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

Source from the content-addressed store, hash-verified

622
623 // Helper function to get the text content that will be displayed (after stripAnsi)
624 function getDisplayText(tokens: Token[] | undefined): string {
625 return stripAnsi(
626 tokens
627 ?.map(_ => formatToken(_, theme, 0, null, null, highlight))
628 .join('') ?? '',
629 )
630 }
631
632 // Determine column widths based on displayed content (without formatting)
633 const columnWidths = tableToken.header.map((header, index) => {

Callers 1

formatTokenFunction · 0.85

Calls 1

formatTokenFunction · 0.85

Tested by

no test coverage detected