From 7c3eba77fd3de0e108efba94018233a57e66989e Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Wed, 11 May 2022 20:42:30 +0300 Subject: Implement indented code blocks. --- src/clarktown/correctors/atx_heading_block.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clarktown/correctors/atx_heading_block.clj') diff --git a/src/clarktown/correctors/atx_heading_block.clj b/src/clarktown/correctors/atx_heading_block.clj index 6668700..5a5f713 100644 --- a/src/clarktown/correctors/atx_heading_block.clj +++ b/src/clarktown/correctors/atx_heading_block.clj @@ -20,7 +20,7 @@ there's no empty newline above, we need to create one, and so this function must then return `true`." [lines line index] - (and (is-atx-heading? (string/trim line)) + (and (is-atx-heading? line) (> index 0) (not (= (-> (nth lines (- index 1)) string/trim) "")) -- cgit v1.2.3