(add-title+toc {:as doc :keys [content]})
Computes and adds a :title and a :toc to the document-like structure doc
which might have not been constructed by means of parse
.
Computes and adds a :title and a :toc to the document-like structure `doc` which might have not been constructed by means of `parse`.
(assign-node-id+emoji {:as doc
:nextjournal.markdown.parser/keys [id->index path]
:keys [text->id+emoji-fn]})
(normalize-tokenizer {:as tokenizer
:keys [doc-handler handler regex tokenizer-fn]})
Normalizes a map of regex and handler into a Tokenizer
Normalizes a map of regex and handler into a Tokenizer
(open-node doc type)
(open-node doc type attrs)
(open-node doc type attrs top-level)
(parse tokens)
(parse doc tokens)
Takes a doc and a collection of markdown-it tokens, applies tokens to doc. Uses an emtpy doc in arity 1.
Takes a doc and a collection of markdown-it tokens, applies tokens to doc. Uses an emtpy doc in arity 1.
(re-idx-seq re text)
Takes a regex and a string, returns a seq of triplets comprised of match groups followed by indices delimiting each match.
Takes a regex and a string, returns a seq of triplets comprised of match groups followed by indices delimiting each match.
(tokenize-text-node {:as tkz :keys [tokenizer-fn doc-handler]}
{:as node :keys [text]})
(update-current {:as doc path :nextjournal.markdown.parser/path} fn & args)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close