Skip to content

Commit 280b0f1

Browse files
committed
keep parsed markdown around
1 parent 1147028 commit 280b0f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/eden/loader.clj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,8 @@
115115

116116
(str/ends-with? path ".md")
117117
(let [parsed (parse-markdown (slurp (str file)))]
118-
;; Convert markdown to HTML immediately
119118
(if (:markdown/content parsed)
120-
(-> parsed
121-
(assoc :content/html (md/md-to-html-string (:markdown/content parsed)))
122-
(dissoc :markdown/content)) ; Remove raw markdown to save memory
119+
(assoc parsed :content/html (md/md-to-html-string (:markdown/content parsed)))
123120
parsed))
124121

125122
:else nil)))

0 commit comments

Comments
 (0)