MCPcopy
hub / github.com/markedjs/marked / text

Method text

src/Renderer.ts:193–197  ·  view source on GitHub ↗
(token: Tokens.Text | Tokens.Escape)

Source from the content-addressed store, hash-verified

191 }
192
193 text(token: Tokens.Text | Tokens.Escape): RendererOutput {
194 return 'tokens' in token && token.tokens
195 ? this.parser.parseInline(token.tokens) as unknown as RendererOutput
196 : ('escaped' in token && token.escaped ? token.text as RendererOutput : escapeHtmlEntities(token.text) as RendererOutput);
197 }
198}

Callers 7

updateGfmFunction · 0.45
blockTokensMethod · 0.45
parseMethod · 0.45
parseInlineMethod · 0.45
setInitialTextFunction · 0.45
setInitialQuickrefFunction · 0.45
fetchMarkedFunction · 0.45

Calls 2

escapeHtmlEntitiesFunction · 0.90
parseInlineMethod · 0.80

Tested by

no test coverage detected