clerk
clerk copied to clipboard
⚡️ Moldable Live Programming for Clojure
I noticed an issue when using local images to build a clerk module. Markdown-defined images only work if they are full URLs but not if they are local files. The...
Following through in the workshop, in https://github.com/nextjournal/clerk-demo/blob/master/workshop/exercises/ex_2_table_viewer.clj#L45: changing `::clerk/width :full` to `::clerk/width :foo` does not report an error for invalid values . In contrast, invalid values for `:code` in `::clerk/visibility...
Fix #639. Fix #638. In scenarios like `{:nextjournal/value {:nextjournal/value x}}` normalises the envelope to just one level merging inner keys onto outer ones.
```clojure ;; # 🐞Debug (ns scratch.debug {:nextjournal.clerk/visibility {:code :hide}} (:require [nextjournal.clerk :as clerk] [nextjournal.clerk.viewer :as viewer])) {:nextjournal/value (clerk/with-viewer viewer/string-viewer "hello")} ``` the above gives: ...
Closes #639. Closes #638. Fixes presentation of wrapped values, so far: ```clojure (viewer/present {:nextjournal/value (clerk/with-viewer viewer/string-viewer "hello")}) ;; => [{:path [], ;; :nextjournal/value "hello", ;; :nextjournal/viewer {:name nextjournal.clerk.viewer/map-viewer, ;; :render-fn...
### Minimal repro: Start a deps.edn project: ```clojure {:paths ["src"] :deps {io.github.nextjournal/clerk {:mvn/version "0.15.957"}}} ``` Start a repl and Clerk server, then `show!` the following `src/repro.clj` file ```clojure (ns repro...
In https://github.com/mentat-collective/emmy Uncommenting any of these files: https://github.com/mentat-collective/emmy/blob/main/dev/user.clj#L42-L48 and running ``` bb build-static ``` causes errors like this: ```clj {:clojure.main/message "Execution error (ExceptionInfo) at nextjournal.clerk.eval/eval+cache! (eval.clj:150).\nExecution error (IllegalArgumentException) at emmy.expression.analyze/eval76525$fn$G...
Reproducible by showing the following ns with clerk. Note: it won't reproduce if the `defprotocol` form (or the whole ns) is evaluated in the REPL _before_ calling `clerk/show!`. Analysis also...
E.g. when dealing with sorted-sets. We probably want to point a `nextjournal.clerk.viewer/get-safe`.
This is a minor fix, but it keeps showing up as a warning in my projects when I run clj-kondo from the command line, and I'd like to fix it...