File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 293
293
294
294
(defn parse-markdown
295
295
" Like `n.markdown.parser/parse` but allows to reuse the same context in successive calls"
296
- [ctx md]
297
- (markdown.parser/apply-tokens ctx (markdown/tokenize md)))
296
+ ([md] (parse-markdown (markdown-context ) md))
297
+ ([ctx md]
298
+ (markdown.parser/apply-tokens ctx (markdown/tokenize md))))
298
299
299
300
#_(parse-markdown-string {:doc? true } " # Title\n Some [[internal-link]] to be followed." )
300
301
Original file line number Diff line number Diff line change 986
986
:transform-fn (fn [wrapped-value]
987
987
(-> wrapped-value
988
988
mark-presented
989
- (update :nextjournal/value #(cond->> % (string? %) md /parse))
989
+ (update :nextjournal/value #(cond->> % (string? %) parser /parse-markdown ))
990
990
(with-md-viewer )))})
991
991
992
992
(def code-viewer
You can’t perform that action at this time.
0 commit comments