{ if (event.key === 'Enter' || event.key === ' ') { handleLinkClick(event); } }} role="button" tabindex="0" >
{#if note} {#if isEditing}
{#await renderMarkdown(note.content)}

Rendering markdown...

{:then markdownContent} {@html markdownContent} {:catch err}

Error rendering the markdown content!i {err.message}

{/await}
{:else}

{note.title}

{#await renderMarkdown(note.content)}

Rendering markdown...

{:then markdownContent} {@html markdownContent} {:catch err}

Error rendering the markdown content!i {err.message}

{/await}

Last updated: {note.updatedAt.toLocaleString()}

{/if} {:else}
Note not found
{/if}