extensions/notebook-renderers/src/textHelper.ts/insertOutput
export function insertOutput(id: string, outputs: string[], linesLimit: number, scrollable: boolean, container: HTMLElement) {
	const buffer = outputs.join('\n').split(/\r\n|\r|\n/g);
	const lineCount = buffer.length;

	if (lineCount < linesLimit) {
		const spanElement = handleANSIOutput(buffer.join('\n'));
		container.appendChild(spanElement);
		return;
	}

	if (scrollable) {
		scrollableArrayOfString(id, buffer, container);
	} else {
		truncatedArrayOfString(id, buffer, linesLimit, container);
	}
}