{#each markupButtons as button}
{button.label}
{/each}
Remove Formatting
Clear
{ if (e.key === "Enter" && mentionSearch.trim() && !isSearching) { searchMentions(); } }} class="flex-1 rounded-lg border border-gray-300 bg-gray-50 text-gray-900 text-sm focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500 p-2.5" />
{ e.preventDefault(); e.stopPropagation(); searchMentions(); }} disabled={isSearching || !mentionSearch.trim()} > {#if isSearching} Searching... {:else} Search {/if}
{#if mentionLoading}
Searching...
{:else if mentionResults.length > 0}
Found {mentionResults.length} results
{#each mentionResults as profile}
selectMention(profile)} > {#if profile.pubkey && communityStatus[profile.pubkey]}
{:else}
{/if} {#if profile.picture}
{:else}
{/if}
{profile.displayName || profile.name || "anon"}
{#if profile.nip05}
{profile.nip05}
{/if}
{shortenNpub(profile.pubkey)}
{/each}
{:else if mentionSearch.trim()}
No results found
{:else}
Enter a search term to find users
{/if}
Insert
{ showWikilinkModal = false; }}>Cancel
{@html preview}
{#if error}
{error} {#if showOtherRelays}
handleSubmit(true)} >Try Other Relays
{/if} {#if showSecondaryRelays}
handleSubmit(false, true)}>Try Fallback Relays
{/if}
{/if} {#if success}
Comment published successfully to {success.relay}!
Event ID:
{success.eventId}
View your comment
{/if}
{#if userProfile}
{#if userProfile.picture}
(e.target as HTMLImageElement).style.display = 'none'} /> {:else}
{/if}
{userProfile.displayName || userProfile.name || "anon"}
{/if}
handleSubmit()} disabled={isSubmitting || !content.trim() || !$userPubkey} class="w-full md:w-auto" > {#if !$userPubkey} Not Signed In {:else if isSubmitting} Publishing... {:else} Post Comment {/if}
{#if !$userPubkey}
Please sign in to post comments. Your comments will be signed with your current account.
{/if}