summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsko Nõmm <asko@bien.ee>2021-12-07 22:21:25 -0300
committerAsko Nõmm <asko@bien.ee>2021-12-07 22:21:25 -0300
commitb0475ce5581bcb396fda3685f92916597b320ab5 (patch)
tree86e9d60ab4ab20b0c85a19f4bc49cfe0d41f2ebb /src
parent0faad35a2bb98eda9aa59dc6b95bb1978f3fda71 (diff)
Fix quote block
Diffstat (limited to 'src')
-rw-r--r--src/clarktown/parsers/quote_block.clj11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/clarktown/parsers/quote_block.clj b/src/clarktown/parsers/quote_block.clj
index 8b9c997..ff2dda8 100644
--- a/src/clarktown/parsers/quote_block.clj
+++ b/src/clarktown/parsers/quote_block.clj
@@ -16,8 +16,9 @@
"Renders a quote block."
[block parsers]
(let [matches (re-seq #">.*" block)
- blocks (for [match matches]
- (-> (subs match 1)
- string/trim
- (parser/parse parsers)))]
- (str "<blockquote>" (string/join "\n" blocks) "</blockquote>")))
+ blocks (->> (for [match matches]
+ (-> (subs match 1)
+ string/trim))
+ (string/join "\n"))
+ block (parser/parse blocks parsers)]
+ (str "<blockquote>" block "</blockquote>")))