diff options
| author | Asko Nõmm <84135165+askonomm@users.noreply.github.com> | 2022-04-30 13:11:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-30 13:11:57 +0300 |
| commit | 4393901425177a36e091e5d29926383e7a546b75 (patch) | |
| tree | 08fe69fe0a4de92ac65a81612ee21dfb60834977 /src | |
| parent | faf11bf88b598d55f81899784c7c16e32a8d415d (diff) | |
| parent | 2e548f1bc696db90d11024600d5ccce73131135f (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')
| -rw-r--r-- | src/clarktown/matchers/heading_block.clj | 2 |
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? |
