Comments (12)
Nice catch @Lucas-C !
Did you find other inconsistencies?
On Sun, 2 Oct 2016 at 17:15 Lucas Cimon [email protected] wrote:
I used a very basic setup, and tested with Chrome:
1/0<script> window.klipse_settings = {selector_eval_js: '.klipse'}; </script> <script src="/libs/js/klipse_plugin.min.js"></script>โ
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#122, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6VPvXP9fxqJrZf48RDJTrA78qaDkTEks5qv7yVgaJpZM4KMBRT
.
from klipse.
@Lucas-C the root cause is that Infinity
is not part of JSON and currently KLIPSE uses JSON.stringify to stringify the result of eval
.
I found a library that pretty print javascript without using JSON.stringify:
https://github.com/cvadillo/js-object-pretty-print
Integrating this lib into KLIPSE will solve the issue.
from klipse.
Thank you !
from klipse.
This issue is going to be fixed by #149
By the way the same problem occured with ES6 Symbols
from klipse.
It is fixed! Can you please double check @Lucas-C ?
from klipse.
The original bug seems fixed, but now there is a "klipse-container-0"
string by default in the 2nd .CodeMirror
block :
from klipse.
Any idea on where that is coming from ??
from klipse.
Yeah. It's the id of the container associated with the the snippet. Try to type
document.getElementById("klipse-container-0").innerHTML =
"<div style='color:blue;'> Hello <b>World</b>!</div>"
You can prevent it by setting data-async-code="true"
from klipse.
I could not make it work properly:
data-async-code
simply broke the code evaluation- there is and HTML element with ID "klipse-container-0" but it is not the one that contains the text I see
Hence I decided to revert using v0.7.0 : https://lucas-c.github.io/progWorkshop-bootstrapPage/workshop_material/challenges/3.html
from klipse.
I see. Indeed it's a bug inside KLIPSE.
Could you open a separate issue please?
(Trรจs sympa ton site!!!)
from klipse.
from klipse.
Thanks
(merci!)
from klipse.
Related Issues (20)
- CORS blocks script HOT 4
- new issue with reagent, and loading namespaces? HOT 2
- Adding class="hidden" is not hiding code snippets HOT 1
- Unable to use npm package HOT 1
- Clojure.spec is broken HOT 2
- Allow Klipse to be easilly embedded as an iframe HOT 3
- hello world HOT 3
- how to find compiler versions? HOT 1
- Klipse Snippets not loading on Klipse blogpost HOT 1
- Add Deno runtime and Dartlang HOT 1
- Python dependency on skulpt.0.10.0.min.js? HOT 2
- Klipse's GitBook Clojure[script] links seem to be broken HOT 1
- Pyodide:
- Support for nim language HOT 1
- Any way to evaluate a snippet only when a button is clicked? (not evaluate all the time)
- `cljs.core.match` fails to load HOT 1
- cannot fetch from viebel.github.io HOT 3
- Is there Haskell support? HOT 3
- Is there Zig support? HOT 1
- Missing input box HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klipse.