images don't load
mk opened this issue · 2 comments
mk commented
Since webserver/blob->presented now assumes a structure with a :nextjournal/presented key that doesn't apply to the slideshow viewer.
dgtized commented
(ns example-talk
#:nextjournal.clerk{:visibility {:code :hide}}
(:require
[clojure.java.io :as io]
[nextjournal.clerk :as clerk]
[nextjournal.clerk-slideshow :as slideshow])
(:import
(javax.imageio ImageIO)))
;; ---
;; # Testing
^{::clerk/visibility {:result :hide}}
(comment
(clerk/add-viewers! [slideshow/viewer])
(clerk/reset-viewers! clerk/default-viewers))
(ImageIO/read (io/file "test-image.png"))
On first load this works correctly, but after evaluating the add-viewer line, it renders a broken image instead.
zampino commented
Fixed in Clerk with nextjournal/clerk@0de032d.