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 nscheck https://github.com/nextjournal/clerk/blob/main/notebooks/viewers/context.clj for more context
thatโs great, thanks Andrea!