MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / stripHash

Function stripHash

apps/kimi-code/src/tui/theme/pi-tui-theme.ts:27–27  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

25export function createMarkdownTheme(options?: { transient?: boolean }): MarkdownTheme {
26 const transient = options?.transient === true;
27 const stripHash = (text: string): string => text.replace(HEADING_HASH_PREFIX, '$1');
28
29 return {
30 heading: (text) => chalk.bold.hex(currentTheme.color('text'))(stripHash(text)),

Callers 1

createMarkdownThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected