Skip to content

Commit

Permalink
Fix caching behavior of clerk/image, support override
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Nov 5, 2023
1 parent b95bcd7 commit c3eedb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changes can be:
## Unreleased

* 💫 Allow to disable welcome page in `serve!`
* 🐞 Fix caching behaviour of `clerk/image` and support overriding image-viewer by name
* 🐞 Fix `row` and `col` viewers not showing a first map argument, fixes [#567](https://github.com/nextjournal/clerk/issues/567) @teodorlu

## 0.15.957 (2023-09-28)
Expand Down
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/viewer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@
(defn image
([image-or-url] (image {} image-or-url))
([viewer-opts image-or-url]
(with-viewer image-viewer viewer-opts
(with-viewer (:name image-viewer) viewer-opts
#?(:cljs image-or-url :clj (read-image image-or-url)))))

(defn caption [text content]
Expand Down

0 comments on commit c3eedb6

Please sign in to comment.