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


(defn is?
  "Determines if the current block is an empty block or not."
  [block]
  (-> (string/replace block #"\n" "")
      string/trim
      string/blank?))


(defn render
  "Renders an empty block."
  [block _]
  "")