{#each parts as part, i (i)} {#if part.op === 'added'}{part.text}{:else if part.op === 'removed'}{part.text}{:else}{part.text}{/if} {/each}