{#if lang === 'mermaid'} {#if mermaidHtml} {:else}
{code}
{/if} {:else}
{lang}
{#if lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code))} {#if executing}
Running
{:else if run} {/if} {/if} {#if save} {/if}
{ saveCode(); }} on:change={(e) => { _code = e.detail.value; }} />
{#if executing}
STDOUT/STDERR
Running...
{:else if stdout || stderr || result}
STDOUT/STDERR
{stdout || stderr || result}
{/if} {/if}