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 293293
294294(defn parse-markdown
295295 " 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))))
298299
299300#_(parse-markdown-string {:doc? true } " # Title\n Some [[internal-link]] to be followed." )
300301
Original file line number Diff line number Diff line change 986986 :transform-fn (fn [wrapped-value]
987987 (-> wrapped-value
988988 mark-presented
989- (update :nextjournal/value #(cond->> % (string? %) md /parse))
989+ (update :nextjournal/value #(cond->> % (string? %) parser /parse-markdown ))
990990 (with-md-viewer )))})
991991
992992(def code-viewer
You can’t perform that action at this time.
0 commit comments