I'm trying to run asciinema player from silverbullet. This means loading a css, a js and having a dom element with an id. Currently I have
```space-style
@import url('https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle/asciinema-player.css');
```
```space-lua
asciinemaplayer = js.import("https://cdn.jsdelivr.net/npm/[email protected]/+esm")
function getDemo()
return js.window.document.getElementById("demo")
end
```
and as raw html in my markdown:
<div id="demo">
Then I call
${asciinemaplayer.create("/.fs/testing.cast", getDemo())}
in silverbullet.
This works (sometimes) after restarting with alt+ctrl+r, but never on first load. Also, the ${..} gives back something like
Any ideas how to do this?
