Liking cljdoc? Tell your friends :D
Clojure only.

cryogen-core.toc


_hclj

source

generate-tocclj

(generate-toc html & {:keys [list-type] :or {list-type :ol}})

Reads an HTML string and parses it for headers, then returns a list of links to them.

Optionally, a map of :list-type can be provided with value :ul, :ol, or true. :ol and true will result in an ordered list being generated for the table of contents, while :ul will result in an unordered list. The default is an ordered list.

Reads an HTML string and parses it for headers, then returns a list of links
to them.

Optionally, a map of :list-type can be provided with value :ul, :ol, or true.
:ol and true will result in an ordered list being generated for the table of
contents, while :ul will result in an unordered list. The default is an
ordered list.
sourceraw docstring

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

× close