I can’t seem to find this info anywhere, and I’ve tried playing with CSS a bit, without success, but I’d really love to be able to select (and copy) the rendered output of Lua expressions.
I’m open to any kind of tweak, given that I’ve already customized my instance heavily via space-style and space-lua.
Any idea?
Thank you everybody, and especially the developers of Silverbullet, which is absolutely fantastic.
Are you talking about copying the html or the markdown (if available)?
The rendering of “whatever input type” to “output” is not super simple. It’s basically this complete file and a lot of the functions used here aren’t available to the outside.
For html (at least the one returned by the function) one could retrieve that fairly easily.
For the markdown it’s not that easy, because the functions aren’t available.
But then one would have to write a garbled hack to actually a button available, bla bla.
tl;dr: Not really possible to my knowledge
It would be very simple to add to SB tho. Like +10 more
Made a PR