Fix #2109 - Allow inline JSON config attribute in PyEditor (#2110)

Fix #2109 - Allow inline JSON config attribute in PyEditor
This commit is contained in:
Andrea Giammarchi
2024-06-24 17:04:28 +02:00
committed by GitHub
parent 461ae38763
commit 7b8ef7ebe2
10 changed files with 85 additions and 90 deletions

View File

@@ -29,7 +29,7 @@
a = 1
</script>
<!-- a share-nothing micropython editor -->
<script type="mpy-editor" config="./config.toml">
<script type="mpy-editor" config='{"js_modules":{"worker":{"https://cdn.jsdelivr.net/npm/html-escaper/+esm":"html_escaper"}}}'>
from pyscript.js_modules.html_escaper import escape, unescape
print(unescape(escape("<OK>")))
b = 2