{#if note?.id && !isReadOnly}

{$t('notes.editing_note')} {initialName}

{:else if !isReadOnly} {$t('notes.note_editor')} {:else} {$t('notes.note_viewer')} {/if}

{$t('adventures.basic_information')}
{#if collection && collection.start_date && collection.end_date && !isReadOnly} {/if}

{#if !isReadOnly} {:else if note}

{@html renderMarkdown(note.content || '')}
{/if}
{#if !isReadOnly}
{ if (e.key === 'Enter') { e.preventDefault(); addLink(); } }} />
{/if} {#if newNote.links.length > 0}
    {#each newNote.links as link, i}
  • {link}
  • {/each}
{/if}
{#if warning}
{warning}
{/if} {#if collection.is_public}
{$t('notes.note_public')}
{/if}