We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b33638 commit f73a784Copy full SHA for f73a784
src/nextjournal/clerk/view.clj
@@ -7,9 +7,10 @@
7
[nextjournal.clerk.viewer :as v])
8
(:import (java.net URI)))
9
10
+
11
(defn ^:private extract-hash->viewer [presentation]
12
(into {}
- (map (juxt :hash identity))
13
+ (map (juxt #(symbol "nextjournal.clerk" (str "viewer-fn$" (:hash %))) identity))
14
(keep :nextjournal/viewer (tree-seq (some-fn map? vector?) #(cond-> % (map? %) vals) presentation))))
15
16
(defn doc->viewer
0 commit comments