clerk

manas_marthi 2025-01-24T10:41:25.031839Z

Hi, how to exclude code commented using semicolons from the browser output

teodorlu 2025-01-24T15:56:47.875319Z

You could use visibility markers along with a (comment-block:

(ns mikrobloggeriet.questions)

;; Shown

{:nextjournal.clerk/visibility {:code :hide :result :hide}}

(comment
  ;; Stuff inside (comment) forms isn't shown
  )

{:nextjournal.clerk/visibility {:code :show :result :show}}

;; Also shown

teodorlu 2025-01-24T15:57:52.858709Z

See the book for docs on visibility markers: https://book.clerk.vision/#visibility

manas_marthi 2025-01-24T15:58:35.331579Z

Thank you

manas_marthi 2025-01-24T10:43:25.843419Z

Also, how do I configure the browser to scroll to the output corresponding to the last edited form in a notebook file?