Skip to content

Commit

Permalink
Support hard line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Apr 14, 2023
1 parent eb7f8a2 commit bc356f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/nextjournal/markdown/transform.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,13 @@ par two"
:softbreak (fn [ctx _]
(-> ctx
(write new-line)
(cond-> (list-container ctx) (-> write-list-padding (write " ")))
(cond-> (list-container ctx) (-> write-list-padding (write tab)))
(cond-> (quote? ctx) (write "> "))))
:hardbreak (fn [ctx _]
(-> ctx
(write "\\")
(write new-line)
(cond-> (list-container ctx) (-> write-list-padding (write tab)))
(cond-> (quote? ctx) (write "> "))))
:blockquote (block write-child-nodes)

Expand Down

0 comments on commit bc356f5

Please sign in to comment.