markdown-exec 1.10.2__py3-none-any.whl → 1.10.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ function clearOutput(element) {
16
16
  }
17
17
 
18
18
  async function evaluatePython(pyodide, editor, output, session) {
19
- pyodide.setStdout({ batched: (string) => { writeOutput(output, string); } });
19
+ pyodide.setStdout({ batched: (string) => { writeOutput(output, new Option(string).innerHTML); } });
20
20
  let result, code = editor.getValue();
21
21
  clearOutput(output);
22
22
  try {
@@ -101,6 +101,8 @@ async function setupPyodide(idPrefix, install = null, themeLight = 'tomorrow', t
101
101
  writeOutput(output, `Could not install one or more packages: ${install.join(", ")}\n`);
102
102
  writeOutput(output, new Option(error.toString()).innerHTML);
103
103
  }
104
+ } else {
105
+ clearOutput(output);
104
106
  }
105
107
  run.onclick = () => evaluatePython(pyodide, editor, output, session);
106
108
  clear.onclick = () => clearOutput(output);
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: markdown-exec
3
- Version: 1.10.2
3
+ Version: 1.10.3
4
4
  Summary: Utilities to execute code blocks in Markdown files.
5
5
  Keywords: markdown,python,exec,shell,bash,mkdocs
6
6
  Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
@@ -1,7 +1,7 @@
1
- markdown_exec-1.10.2.dist-info/METADATA,sha256=p_03bcEee3LVhFXFkmBPpnEa2kXPtRxHJLmhst3j-L4,4967
2
- markdown_exec-1.10.2.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- markdown_exec-1.10.2.dist-info/entry_points.txt,sha256=fjbdFnhAdp5BS5JSD_VVuTX4Kz9ZjWMqg3QcxOrKuw8,101
4
- markdown_exec-1.10.2.dist-info/licenses/LICENSE,sha256=eZQBcJKqlN0QepmOi0u09hlqKMPFdzWjY6NUWYeJGZs,754
1
+ markdown_exec-1.10.3.dist-info/METADATA,sha256=RLkgpHa2gX3EqT_tjHkU4wlU8UI8X2BikXW-y74CILk,4967
2
+ markdown_exec-1.10.3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ markdown_exec-1.10.3.dist-info/entry_points.txt,sha256=fjbdFnhAdp5BS5JSD_VVuTX4Kz9ZjWMqg3QcxOrKuw8,101
4
+ markdown_exec-1.10.3.dist-info/licenses/LICENSE,sha256=eZQBcJKqlN0QepmOi0u09hlqKMPFdzWjY6NUWYeJGZs,754
5
5
  markdown_exec/__init__.py,sha256=yS0iGXTaZvvPUYC2ZgpAzYJqwxtvHe9Yr__r2sjB8ig,1341
6
6
  markdown_exec/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  markdown_exec/_internal/debug.py,sha256=bdTv2PPqPKMxvFlQI4LDkVddGp1_EO6HY3brvdXqzsU,2827
@@ -23,7 +23,7 @@ markdown_exec/_internal/processors.py,sha256=hu_occeaz2SymdREwHul-boniv42RfNkY84
23
23
  markdown_exec/_internal/rendering.py,sha256=aCLsbWcez5Mbp3SBYQaqhVCehX_cchCAMuvxp5AzknA,9599
24
24
  markdown_exec/assets/ansi.css,sha256=6PTJxTSsExVgPbMySCuKjih0gr-fdfx2aZ9--u7zWf0,8090
25
25
  markdown_exec/assets/pyodide.css,sha256=lan5A3qEGA4ABTrXPOWJX8kezQp7naH305NKVTSObhM,954
26
- markdown_exec/assets/pyodide.js,sha256=-7_W_7lTz2nUNixWbpgleDnr109Ca9TTSKJ9VzgdoJE,4176
26
+ markdown_exec/assets/pyodide.js,sha256=g5eWWVP7-8mA2DQvj-a34I167CRP7yMAVykR13CUWp4,4240
27
27
  markdown_exec/formatters/__init__.py,sha256=bH4xBv9gRcYMvDYvW2yEK9AMl-tpXKJ8XifxCxHTJCc,429
28
28
  markdown_exec/formatters/base.py,sha256=tYWDIAgopl7P3cIJllXcf9j2ruFl9vKqk2_ZGUz4YvM,433
29
29
  markdown_exec/formatters/bash.py,sha256=EtAbQrAsLCRfTbdB-b_5dOJvw-Bxkw7MT9F7RFusve0,433
@@ -39,4 +39,4 @@ markdown_exec/mkdocs_plugin.py,sha256=jwYOBaHDaDsKVC7RuvCQaFWqTQWQWYtojEUb0RhOnf
39
39
  markdown_exec/processors.py,sha256=m4bm4d23X4RMh9mVgYuIxfJZnS4HwlY4Te3UMLpyjBA,429
40
40
  markdown_exec/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  markdown_exec/rendering.py,sha256=bsetG1hv6S_VcF4ZqtqTMTOhgEs2RmYVNCaK4MqiDx4,426
42
- markdown_exec-1.10.2.dist-info/RECORD,,
42
+ markdown_exec-1.10.3.dist-info/RECORD,,