clerk 2026-02-13

hello ๐Ÿ‘‹ Is there a way to always ignore comment forms when rendering (effectively a hidden visibility for both code and result by default)?

a bit convoluted but this will do

(clerk/reset-viewers! :default (clerk/add-viewers
                                  [(update viewer/cell-viewer
                                           :transform-fn comp
                                           (viewer/update-val
                                            (fn [{:as cell :keys [form]}]
                                              (cond-> cell
                                                (and (list? form) (= 'comment (first form)))
                                                (assoc-in [:settings ::clerk/visibility] {:code :hide :result :hide})))))]))
need to call it once, regardless of from which ns

๐Ÿ™ 1

thatโ€™s great, thanks Andrea!