{#each tokens as token} {#if token.type === 'escape'} {unescapeHtml(token.text)} {:else if token.type === 'html'} {@const html = DOMPurify.sanitize(token.text)} {#if html && html.includes(' {:else} {token.text} {/if} {:else if token.type === 'image'} {:else if token.type === 'strong'} {:else if token.type === 'em'} {:else if token.type === 'codespan'} { copyToClipboard(unescapeHtml(token.text)); toast.success($i18n.t('Copied to clipboard')); }}>{unescapeHtml(token.text)} {:else if token.type === 'br'} {:else if token.type === 'del'} {:else if token.type === 'inlineKatex'} {#if token.text} {/if} {:else if token.type === 'iframe'} {:else if token.type === 'text'} {token.raw} {/if} {/each}
{ copyToClipboard(unescapeHtml(token.text)); toast.success($i18n.t('Copied to clipboard')); }}>{unescapeHtml(token.text)}