nextjournal / clerk

⚡️ Moldable Live Programming for Clojure
https://clerk.vision
ISC License
1.74k stars 76 forks source link

Defs in clerk fragments are shown as vars #600

Closed zampino closed 6 months ago

zampino commented 6 months ago
(ns scratch.defs-in-examples
  (:require [nextjournal.clerk :as clerk]))

(def x 2)

(clerk/comment
  #'x
  (def y 3)
  (clerk/comment
    123
    (def z 1)))

show up as

Screenshot 2024-01-03 at 17 02 10

same for examples:

Screenshot 2024-01-03 at 18 00 41