First of all I’d just like to say I’m really impressed by this application, it feels very polished and has a tonne of features that I wouldn’t expect from an open-source project of this scale so I’d like to say thanks for the effort you’ve been putting in.
I’m a little bit new to javascript and markdown, but I was wondering if it is possible to embed javascript within the desktop application.
For example if I wanted to have the following code snippet:
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js">
</script>
<div id="viz">
</div>
<script type="text/javascript">
var sampleSVG = d3.select("#viz")
.append("svg")
.attr("width", 100)
.attr("height", 100);
sampleSVG.append("circle")
.style("stroke", "gray")
.style("fill", "white")
.attr("r", 40)
.attr("cx", 50)
.attr("cy", 50)
.on("mouseover", function(){d3.select(this).style("fill", "aliceblue");})
.on("mouseout", function(){d3.select(this).style("fill", "white");});
</script>
Is there anyway I can have this run locally on the desktop app? My understanding is that since it is based on Electron this should be possible? Embedding more standard HTML works as expected.
It would make a killer app for developers journals if it is possible, I may just be completely missing something why this isn’t possible (or have an error in how I am attempting to use it)?
Thanks again