This commit is contained in:
Timothy Jaeryang Baek
2025-02-02 23:35:58 -08:00
parent 09cd95bffe
commit 78853a67e4
3 changed files with 24 additions and 26 deletions

View File

@@ -195,7 +195,7 @@
</ul>
{/if}
{:else if token.type === 'details'}
<Collapsible title={token.summary} attributes={token?.attributes} className="w-fit space-y-1">
<Collapsible title={token.summary} attributes={token?.attributes} className="w-full space-y-1">
<div class=" mb-1.5" slot="content">
<svelte:self id={`${id}-${tokenIdx}-d`} tokens={marked.lexer(token.text)} />
</div>

View File

@@ -248,8 +248,8 @@
tags.set(await getAllTags(localStorage.token));
}
} else {
if (type === 'execute:pyodide') {
console.log('execute:pyodide', data);
if (type === 'execute:python') {
console.log('execute:python', data);
executePythonAsWorker(data.id, data.code, cb);
}
}