Commit b443d61c authored by arkohut's avatar arkohut
Browse files

feat: support py Python for code execution

parent d43ee0fc
...@@ -213,7 +213,7 @@ __builtins__.input = input`); ...@@ -213,7 +213,7 @@ __builtins__.input = input`);
<div class="p-1">{@html lang}</div> <div class="p-1">{@html lang}</div>
<div class="flex items-center"> <div class="flex items-center">
{#if lang === 'python' || (lang === '' && checkPythonCode(code))} {#if lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code))}
{#if executing} {#if executing}
<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div> <div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
{:else} {:else}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment