summaryrefslogtreecommitdiff
path: root/src/clarktown/parsers/horizontal_line_block.clj
blob: b1d1e057755b97ab1a2b089dc356026c6dfe96b4 (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]
  (or (= "***" (string/trim block))
      (= "---" (string/trim block))))


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