diff options
| author | Asko Nõmm <ano@ano.ee> | 2022-05-12 21:09:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 21:09:38 +0300 |
| commit | 2ff0da12f58d17b6c1ab3736a41595073b3a534e (patch) | |
| tree | 52dab7ba9cb71ca06c334cada0b8fc2c99c3fb91 /src/clarktown/correctors/atx_heading_block.clj | |
| parent | 94c1c0ca639f55ff9073cb1fdf2ad6015bb6bae1 (diff) | |
| parent | dc2a364db6d14d4afa9da9aadbccb8fdbb038fe4 (diff) | |
Merge pull request #31 from askonomm/7-support-indented-code-blocks
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) "")) |
