Liking cljdoc? Tell your friends :D

karak.core


one-transformclj

(one-transform arr trf)
source

processclj

(process input
         {:keys [user-lookup hashtag-lookup transformers]
          :or {transformers defaults}})

Converts the markdown in input (string) using the given options: | option | description |----------------|------------- | user-lookup | Function to search users by @name(@domain). Should return a map with :uri in it. | hashtag-lookup | Function to search hashtags. Should return a map with :uri in it. | transformers | (optional) Vector of transformer functions (presumably from karak.transformers). Defaults to k.t/defaults

Returns a map of the following format: :text The actual processed text :length The total length of the visible bits of the text (excludes tags etc) :mentions Collection of mentions :hashtags Collection of hashtags :links Collection of other links

Converts the markdown in `input` (string) using the given options:
|     option     | description
|----------------|-------------
| user-lookup    | Function to search users by @name(@domain). Should return
                     a map with :uri in it.
| hashtag-lookup | Function to search hashtags. Should return a map with :uri
                     in it.
| transformers   | (optional) Vector of transformer functions (presumably
                     from karak.transformers). Defaults to k.t/defaults

Returns a map of the following format:
:text     The actual processed text
:length   The total length of the visible bits of the text (excludes tags etc)
:mentions Collection of mentions
:hashtags Collection of hashtags
:links    Collection of other links
sourceraw docstring

to-tagged-vecclj

(to-tagged-vec text transformers)
source

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

× close