{#each sorted as block (block.id)}
a.sortOrder - b.sortOrder));
onclick={() => onParagraphClick(block.annotationId)}
role="button"
tabindex="0"
- onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') onParagraphClick(block.annotationId); }}
+ onkeydown={(e) => {
+ if (e.key === 'Enter' || e.key === ' ') onParagraphClick(block.annotationId);
+ }}
>
- {#each splitByMarkers(block.text) as segment, i (i)}
- {#if segment.type === 'marker'}
- {segment.text}
- {:else}
- {segment.text}
- {/if}
- {/each}
+
+ {@html renderBlockHtml(block)}
{/each}
+{#if activeCard}
+