{#each $activeOutputHistory as item (item.id)} {#if item.isInput}
{#if $uiSettings.showTimestamps} {/if}
{@html item.text}
{:else} {@const processedContent = applyHighlights(processAnsi(item.text), item.highlights || [])} {@const lines = splitIntoLines(processedContent)} {#if lines.length <= 1}
{#if $uiSettings.showTimestamps} {/if}
{@html processedContent}
{:else} {#each lines as line, lineIndex}
{#if $uiSettings.showTimestamps && lineIndex === 0} {/if}
{@html line}
{/each} {/if} {/if} {/each}