diff options
| author | Asko Nomm <asko@bien.ee> | 2022-04-10 14:42:53 +0200 |
|---|---|---|
| committer | Asko Nomm <asko@bien.ee> | 2022-04-10 14:42:53 +0200 |
| commit | 187bfeaeb559e8d17f63aef46deb1b2c28ee9829 (patch) | |
| tree | 70f5581d27ebab67d1f3432b783989597119ebf8 /src/clarktown/parsers | |
| parent | 4e2f40df1c9ce5caa983e90e2b91b30f98deaece (diff) | |
Close #10: Support triple-dash horizontal lines
Diffstat (limited to 'src/clarktown/parsers')
| -rw-r--r-- | src/clarktown/parsers/horizontal_line_block.clj | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clarktown/parsers/horizontal_line_block.clj b/src/clarktown/parsers/horizontal_line_block.clj index 06997a6..b1d1e05 100644 --- a/src/clarktown/parsers/horizontal_line_block.clj +++ b/src/clarktown/parsers/horizontal_line_block.clj @@ -6,8 +6,8 @@ (defn is? "Determines whether the given block is a horizontal line block." [block] - (-> (string/trim block) - (= "***"))) + (or (= "***" (string/trim block)) + (= "---" (string/trim block)))) (defn render |
