summaryrefslogtreecommitdiff
path: root/src/clarktown/parsers/horizontal_line_block.clj
blob: 213b295194ff8adb4a3b000bc28cdfd6e947c029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(ns clarktown.parsers.horizontal-line-block
  (:require
    [clojure.string :as string]))


(defn is?
  "Determines whether the given block is a horizontal line block."
  [block]
  (-> (string/trim block)
      (= "***")))


(defn render
  "Renders the horizontal line block."
  [_]
  "<hr>")