Skip to content

Commit 21a427a

Browse files
committed
just to see if this is it
1 parent 1295cde commit 21a427a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nextjournal/clerk/viewer.cljc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
(get-type [_] :val)))
4646

4747
(defn render-fn? [x]
48-
(instance? RenderFn x))
48+
#?(:clj (and (some? x)
49+
(str/includes? (.getName (class x)) "RenderFn"))
50+
:cljs (instance? RenderFn x)))
4951

5052
(defn render-eval? [x]
5153
(and (render-fn? x)

0 commit comments

Comments
 (0)