Created
April 21, 2017 09:23
-
-
Save minikomi/ecce9d0604359b514bd681b3f6d0772e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn strongwrap [s] (str "<strong>" s "</strong>")) | |
(defn strongify-keywords [s] | |
(s/replace s #":[a-z0-9-]+" strongwrap)) | |
(defn pprinter [v] | |
[:pre | |
[:code {:dangerouslySetInnerHTML | |
{:__html (->> (with-out-str (pp/pprint v)) | |
strongify-keywords)}}]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment