diff options
| author | Asko Nõmm <ano@ano.ee> | 2022-05-08 12:23:35 +0300 |
|---|---|---|
| committer | Asko Nõmm <ano@ano.ee> | 2022-05-08 12:23:35 +0300 |
| commit | b97891cc45b9a087a372767e25aa36788bc979bf (patch) | |
| tree | 0401ef1f090575c36f9e110eaeb50412e3fd4139 /src/clarktown/engine.clj | |
| parent | ff2279150638b43aab4e65b2578a5dbd348e21d8 (diff) | |
Naming improvements, code block matcher test
Diffstat (limited to 'src/clarktown/engine.clj')
| -rw-r--r-- | src/clarktown/engine.clj | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clarktown/engine.clj b/src/clarktown/engine.clj index eaa0fb0..5eb22d5 100644 --- a/src/clarktown/engine.clj +++ b/src/clarktown/engine.clj @@ -3,7 +3,7 @@ [clojure.string :as string])) -(defn- stitch-code-blocks +(defn- stitch-fenced-code-blocks "Since code blocks can span multiple blocks (a block is separated by two line breaks from another block) , we need to stitch them together into one block in order for a block parser to be able to do anything @@ -144,6 +144,6 @@ [markdown given-parsers given-correctors] (let [blocks (-> (correct-markdown markdown given-correctors) (string/split #"\n\n") - stitch-code-blocks) + stitch-fenced-code-blocks) parsed-blocks (parse-blocks blocks given-parsers given-correctors)] (string/join "\n\n" parsed-blocks))) |
