diff options
Diffstat (limited to 'src/clarktown/correctors')
| -rw-r--r-- | src/clarktown/correctors/atx_heading_block.clj | 4 | ||||
| -rw-r--r-- | src/clarktown/correctors/fenced_code_block.clj (renamed from src/clarktown/correctors/code_block.clj) | 6 | ||||
| -rw-r--r-- | src/clarktown/correctors/list_block.clj | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/clarktown/correctors/atx_heading_block.clj b/src/clarktown/correctors/atx_heading_block.clj index a2a948b..6668700 100644 --- a/src/clarktown/correctors/atx_heading_block.clj +++ b/src/clarktown/correctors/atx_heading_block.clj @@ -13,7 +13,7 @@ odd?)) -(defn empty-line-above? +(defn newline-above? "Determines whether there's a need for an empty new line above the `line` at the current `index`. In the case of a ATX heading block that starts with the `#` character, if @@ -27,7 +27,7 @@ (not (in-code-block? lines index)))) -(defn empty-line-below? +(defn newline-below? "Determines whether there's a need for an empty new line below the `line` at the current `index`. In the case of a ATX heading block that starts with the `#` character, if diff --git a/src/clarktown/correctors/code_block.clj b/src/clarktown/correctors/fenced_code_block.clj index 73989fe..77bc023 100644 --- a/src/clarktown/correctors/code_block.clj +++ b/src/clarktown/correctors/fenced_code_block.clj @@ -1,9 +1,9 @@ -(ns clarktown.correctors.code-block +(ns clarktown.correctors.fenced-code-block (:require [clojure.string :as string])) -(defn empty-line-above? +(defn newline-above? "Determines whether there's a need for an empty new line above the `line` at the current `index`. In the case of a code block, which starts with three backticks (```), if there's @@ -20,7 +20,7 @@ string/trim) "")))) -(defn empty-line-below? +(defn newline-below? "Determines whether there's a need for an empty new line below the `line` at the current `index`. In the case of a code block, which ends with three backticks (```), if there's diff --git a/src/clarktown/correctors/list_block.clj b/src/clarktown/correctors/list_block.clj index cf84bb1..4525ff7 100644 --- a/src/clarktown/correctors/list_block.clj +++ b/src/clarktown/correctors/list_block.clj @@ -4,7 +4,7 @@ [clarktown.matchers.list-block :as matcher])) -(defn empty-line-above? +(defn newline-above? "Determines whether there's a need for an empty new line above the `line` at the current `index`. In the list block case that's when the above line is not a newline and is not @@ -20,7 +20,7 @@ "")))) -(defn empty-line-below? +(defn newline-below? "Determines whether there's a need for an empty new line above the `line` at the current `index`. In the list block case that's when the below line is not a newline and is not |
