{#if token.type === 'html'} {#if html && html.includes(']*>([\s\S]*?)<\/video>/)} {@const videoSrc = video && video[1]} {#if videoSrc} {:else} {token.text} {/if} {:else if html && html.includes(']*>([\s\S]*?)<\/audio>/)} {@const audioSrc = audio && audio[1]} {#if audioSrc} {:else} {token.text} {/if} {:else if token.text && token.text.match(/]*src="https:\/\/www\.youtube\.com\/embed\/([a-zA-Z0-9_-]{11})(?:\?[^"]*)?"[^>]*><\/iframe>/)} {@const match = token.text.match( /]*src="https:\/\/www\.youtube\.com\/embed\/([a-zA-Z0-9_-]{11})(?:\?[^"]*)?"[^>]*><\/iframe>/ )} {@const ytId = match && match[1]} {#if ytId} {/if} {:else if token.text && token.text.includes(']*src="([^"]+)"[^>]*><\/iframe>/)} {@const iframeSrc = match && match[1]} {#if iframeSrc} {:else} {token.text} {/if} {:else if token.text && token.text.includes('/)} {@const statusTitle = match && match[1]} {@const statusDone = match && match[2] === 'true'} {#if statusTitle}
{statusTitle}
{:else} {token.text} {/if} {:else if token.text.includes(` { try { e.currentTarget.style.height = e.currentTarget.contentWindow.document.body.scrollHeight + 20 + 'px'; } catch {} }} > {/if} {:else if token.text.includes(` {:else} {@const br = token.text.match(//)} {#if br}
{:else} {token.text} {/if} {/if} {/if}