From 1abc4c613740f2454285ae6e0f2814491a5982cb Mon Sep 17 00:00:00 2001 From: Carmen La Date: Fri, 8 Jan 2016 18:51:40 -0500 Subject: [PATCH] Fix bug with rewrite-href function --- src/cryogen_core/markup.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cryogen_core/markup.clj b/src/cryogen_core/markup.clj index 867d406..f3c5ea6 100644 --- a/src/cryogen_core/markup.clj +++ b/src/cryogen_core/markup.clj @@ -14,11 +14,11 @@ (defn rewrite-hrefs "Injects the blog prefix in front of any local links - - ex. becomes " + ex. becomes " [blog-prefix text] (if-not (s/blank? blog-prefix) - (clojure.string/replace text #"href=.?/|src=.?/" #(str (subs % 0 (dec (count %))) "/" blog-prefix "/")))) + + (clojure.string/replace text #"href=.?/|src=.?/" #(str (subs % 0 (dec (count %))) blog-prefix "/")))) (defn markups "Return a vector of Markup implementations. This is the primary entry point