code.doc.link.tag

create-candidate

added in 3.0

(create-candidate {:keys [origin title type], :as element})

creates a candidate based on element

(create-candidate {:origin :ns :ns “code.doc”}) => “ns-code-doc”

create-tag

added in 3.0

(create-tag element tags)(create-tag element tags candidate)

creates a tag based on element and existing tags

(create-tag {:title “hello”} (atom #{“hello” “hello-0” “hello-1” “hello-2”})) => {:title “hello”, :tag “hello-3”}

inc-candidate

added in 3.0

(inc-candidate candidate)

creates additional candidates

(inc-candidate “hello”) => “hello-0”

(inc-candidate “hello-10”) => “hello-11”

tag-optional?

tag-required?

tag-string

added in 3.0

(tag-string s)

creates a tag based on string

(tag-string “hello2World/this.Rocks”) => “hello2-world–this-rocks”