blob: 655c951148be4acfebd34ebc290b9ee47228eb1f (
plain)
1
2
3
4
5
6
7
8
9
10
|
(ns clarktown.matchers.code-block
(:require
[clojure.string :as string]))
(defn match?
"Determines whether we're dealing with a code block."
[block]
(and (string/starts-with? block "```")
(string/ends-with? block "```")))
|