Skip to content

Commit

Permalink
Allow to render parsed, not-analyzed notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Dec 20, 2022
1 parent 44149cf commit 808aa24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nextjournal/clerk/viewer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,8 @@
{:name :clerk/code-block :transform-fn (fn [{:as wrapped-value :nextjournal/keys [value]}]
(-> wrapped-value
(assoc :nextjournal/viewer (if (:fold? value) :code-folded :code))
(update :nextjournal/value :text-without-meta)))})
(update :nextjournal/value
(some-fn :text-without-meta :text))))})

(def tagged-value-viewer
{:name :tagged-value
Expand Down

0 comments on commit 808aa24

Please sign in to comment.