MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / pushText

Function pushText

packages/core/src/widgets/markdown/parse.ts:99–107  ·  view source on GitHub ↗
(out: MarkdownInline[], text: string)

Source from the content-addressed store, hash-verified

97}
98
99function pushText(out: MarkdownInline[], text: string): void {
100 if (text.length === 0) return;
101 const last = out[out.length - 1];
102 if (last !== undefined && last.kind === "text") {
103 out[out.length - 1] = { kind: "text", text: last.text + text };
104 return;
105 }
106 out.push({ kind: "text", text });
107}
108
109function scanRun(input: string, start: number, ch: string): number {
110 let i = start;

Callers 3

parseInlinesFunction · 0.85
flushFunction · 0.85
parseParagraphInlinesFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected