Last active
December 8, 2015 13:55
-
-
Save Jannis/70b1aa5cfb47bacf08f1 to your computer and use it in GitHub Desktop.
This file contains 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 uml-extension [converter] | |
[{:type "lang" | |
:regex #"@startuml\s+(.*?)\s+@enduml" | |
:replace (fn [s match] | |
(println "S >>" s) | |
(println "M >>" match) | |
s)}]) | |
(def converter | |
(js/Showdown.converter. {:extensions [uml-extension]})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment