summaryrefslogtreecommitdiff
path: root/src/clarktown
diff options
context:
space:
mode:
authorAsko Nõmm <84135165+askonomm@users.noreply.github.com>2022-04-30 13:11:57 +0300
committerGitHub <noreply@github.com>2022-04-30 13:11:57 +0300
commit4393901425177a36e091e5d29926383e7a546b75 (patch)
tree08fe69fe0a4de92ac65a81612ee21dfb60834977 /src/clarktown
parentfaf11bf88b598d55f81899784c7c16e32a8d415d (diff)
parent2e548f1bc696db90d11024600d5ccce73131135f (diff)
Merge pull request #26 from askonomm/issue-24
Allow an ATX heading block to precede with up to 3 spaces
Diffstat (limited to 'src/clarktown')
-rw-r--r--src/clarktown/matchers/heading_block.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clarktown/matchers/heading_block.clj b/src/clarktown/matchers/heading_block.clj
index 1a9a451..7cf931d 100644
--- a/src/clarktown/matchers/heading_block.clj
+++ b/src/clarktown/matchers/heading_block.clj
@@ -6,7 +6,7 @@
(defn is-atx-heading?
"Determines whether the given block is a atx heading."
[block]
- (re-matches #"^\#{1,6}\s.*" block))
+ (re-matches #"^\s{0,3}?\#{1,6}\s.*" block))
(defn is-settext-heading?