first pass at documenting the upcoming ⚡️ Render nREPL feature:
Is there a way to ignore, that is don't show in the browser view, comments marked a certain way? e.g i want to ignore this:
;; => {"somekey" "somevalue"}
So i would set the ignore prefix to something like this:
=>
https://github.com/nextjournal/clerk/blob/main/CHANGELOG.md#0161016-2024-06-05
https://github.com/nextjournal/clerk/blob/eaceb15a748d63e968f339833121c5f49d531a07/notebooks/viewers/context.clj has some examples of runtime visibility
(def custom-cell-viewer
(update viewer/cell-viewer
:transform-fn comp
(clerk/update-val (fn [cell]
(update-in cell [:settings ::clerk/visibility]
#(cond
(:ns? cell) {:code :hide :result :show}
(defn? cell) {:code :hide :result :hide}
'else %))))))I don't see anything in the visibility section.
https://clojurians.slack.com/archives/C035GRLJEP8/p1710545929801739
Not sure if there's a more idiomatic option since this thread, but I think using a comment block with visibility metadata should still work.
Ty @smith.adriane I'll look into that option:thinking_face:🙏