Skip to content

Instantly share code, notes, and snippets.

@Jannis
Last active December 8, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jannis/70b1aa5cfb47bacf08f1 to your computer and use it in GitHub Desktop.
Save Jannis/70b1aa5cfb47bacf08f1 to your computer and use it in GitHub Desktop.
(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