{#each tokens as token, tokenIdx (`${id}-${tokenIdx}`)} {#if token.type === 'code'} {#if token.lang === 'mermaid'}
{revertSanitizedResponseContent(token.text)}
{:else}
{/if} {:else} {@html marked.parse(token.raw, { ...defaults, gfm: true, breaks: true, renderer })} {/if} {/each}