import { applyStreamingTailFade } from './chatMarkdownRenderer.ts' const cases = [ '
Great, that narrows it down a lot. Two more quick
', 'Great, that narrows it down a lot. Two more quick
\n', '结尾是引用 doc
', '', '', ] for (const c of cases) { console.log('IN :', JSON.stringify(c)) console.log('OUT:', JSON.stringify(applyStreamingTailFade(c))) console.log('') }