Skip to content

Commit e806ce1

Browse files
committed
fix notebook
1 parent d3f74e2 commit e806ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/parsing_extensibility.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
^{:nextjournal.clerk/visibility {:code :hide :result :hide}}
1313
(def show-text
14-
{:transform-fn (fn [x] (clerk/html [:pre (deref (:nextjournal/value x))]))})
14+
{:transform-fn (fn [x] (clerk/html [:pre (:nextjournal/value x)]))})
1515

1616
;; With recent additions to our `nextjournal.markdown.parser` we're allowing for a customizable parsing layer on top of the tokenization provided by `markdown-it` ([n.markdown/tokenize](https://github.com/nextjournal/markdown/blob/ae2a2f0b6d7bdc6231f5d088ee559178b55c97f4/src/nextjournal/markdown.clj#L50-L52)).
1717
;; We're acting on the text (leaf) tokens, splitting each of those into a collection of [nodes](https://github.com/nextjournal/markdown/blob/ff68536eb15814fe81db7a6d6f11f049895a4282/src/nextjournal/markdown/parser.cljc#L5). We'll explain how that works by means of three examples.

0 commit comments

Comments
 (0)