diff options
| author | Asko Nõmm <asko@bien.ee> | 2022-04-21 19:13:02 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@bien.ee> | 2022-04-21 19:13:02 +0300 |
| commit | 04821d8be5d773153718948454c864495704f67b (patch) | |
| tree | 2b4bf3433ca40f30d0dbd282895e70021a769eda /src/clarktown/renderers/quote_block.clj | |
| parent | a178a0b1867cb5194a1a2cd4f6e01ac261bfa4b7 (diff) | |
Send correctors to each render as well
Diffstat (limited to 'src/clarktown/renderers/quote_block.clj')
| -rw-r--r-- | src/clarktown/renderers/quote_block.clj | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clarktown/renderers/quote_block.clj b/src/clarktown/renderers/quote_block.clj index ee30635..1a302f9 100644 --- a/src/clarktown/renderers/quote_block.clj +++ b/src/clarktown/renderers/quote_block.clj @@ -1,16 +1,16 @@ (ns clarktown.renderers.quote-block (:require [clojure.string :as string] - [clarktown.parser :as parser])) + [clarktown.engine :as engine])) (defn render "Renders a quote block." - [block parsers] + [block parsers correctors] (let [matches (re-seq #">.*" block) blocks (->> (for [match matches] (-> (subs match 1) string/trim)) (string/join "\n")) - block (parser/parse blocks parsers)] + block (engine/render blocks parsers correctors)] (str "<blockquote>" block "</blockquote>"))) |
