diff options
| author | Asko Nõmm <ano@ano.ee> | 2022-05-11 20:42:30 +0300 |
|---|---|---|
| committer | Asko Nõmm <ano@ano.ee> | 2022-05-11 20:42:30 +0300 |
| commit | 7c3eba77fd3de0e108efba94018233a57e66989e (patch) | |
| tree | ae7e3c28a7b097d9dffd60a005c96fdb9758f039 /src/clarktown/correctors/atx_heading_block.clj | |
| parent | 94c1c0ca639f55ff9073cb1fdf2ad6015bb6bae1 (diff) | |
Implement indented code blocks.
Diffstat (limited to 'src/clarktown/correctors/atx_heading_block.clj')
| -rw-r--r-- | src/clarktown/correctors/atx_heading_block.clj | 2 |
1 files changed, 1 insertions, 1 deletions
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) "")) |
