clerk 2025-01-24

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

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

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

Thank you

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