mirror of
https://github.com/pyscript/pyscript.git
synced 2026-03-11 04:00:08 -04:00
Fix #2109 - Allow inline JSON config attribute in PyEditor
This commit is contained in:
committed by
GitHub
parent
461ae38763
commit
7b8ef7ebe2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user