{#each tokens as token} {#if token.type === 'escape'} {unescapeHtml(token.text)} {:else if token.type === 'html'} {:else if token.type === 'link'} {#if token.tokens} {:else} {token.text} {/if} {:else if token.type === 'image'} {:else if token.type === 'strong'} {:else if token.type === 'em'} {:else if token.type === 'codespan'} {:else if token.type === 'br'} {:else if token.type === 'del'} {:else if token.type === 'inlineKatex'} {#if token.text} {/if} {:else if token.type === 'iframe'} { try { e.currentTarget.style.height = e.currentTarget.contentWindow.document.body.scrollHeight + 20 + 'px'; } catch {} }} > {:else if token.type === 'mention'} {:else if token.type === 'text'} {/if} {/each}