(clear-registry)
Reset the Markup registry.
Reset the Markup registry.
A markup engine comprising a dir(ectory) containing markup files, an ext(ension) for finding markup file names, and a render-fn that returns a fn with the signature [java.io.Reader config] -> String (HTML).
A markup engine comprising a dir(ectory) containing markup files, an ext(ension) for finding markup file names, and a render-fn that returns a fn with the signature [java.io.Reader config] -> String (HTML).
(dir this)
(ext this)
(render-fn this)
(markups)
Return a vector of Markup implementations. This is the primary entry point for a client of this ns. This vector should be used to iterate over supported Markups.
Return a vector of Markup implementations. This is the primary entry point for a client of this ns. This vector should be used to iterate over supported Markups.
(register-markup mu)
Add a Markup implementation to the registry.
Add a Markup implementation to the registry.
(rewrite-hrefs blog-prefix text)
Injects the blog prefix in front of any local links ex. <img src='/img/cryogen.png'/> becomes <img src='/blog/img/cryogen.png'/>
Injects the blog prefix in front of any local links ex. <img src='/img/cryogen.png'/> becomes <img src='/blog/img/cryogen.png'/>
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close