Liking cljdoc? Tell your friends :D

hydrox.doc.render.util


adjust-indentclj

(adjust-indent s spaces)

fixes indentation for code that is off slightly due to alignment

(adjust-indent "(+ 1\n 2)" 2) => "(+ 1\n 2)"

fixes indentation for code that is off slightly due to alignment

(adjust-indent "(+ 1\n     2)" 2)
=> "(+ 1\n  2)"
sourceraw docstring

basic-html-escapeclj

(basic-html-escape data)

escapes characters using standard html format

(basic-html-escape "<>") => "<>"

escapes characters using standard html format

(basic-html-escape "<>")
=> "&lt;&gt;"
sourceraw docstring

basic-html-unescapeclj

(basic-html-unescape data)

unescapes characters with standard html format

(basic-html-unescape "&quot;") => """

unescapes characters with standard html format

(basic-html-unescape "&amp;quot;")
=> "&quot;"
sourceraw docstring

joinclj

(join data)

like string/join but will return the input if it is a string

(join "hello") => "hello"

(join ["hello" " " "world"]) => "hello world"

like string/join but will return the input if it is a string

(join "hello") => "hello"

(join ["hello" " " "world"]) => "hello world"
sourceraw docstring

markupclj

(markup data)

calls the markdown library to create markup from a string

calls the markdown library to create markup from a string
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close