(appease claimed spans)
Retags :run spans as :text, if they cross a claimed span.
Retags :run spans as :text, if they cross a claimed span.
(bounds-match? coll)
Predicate to check tokens against a collection of bounded matches coll.
Predicate to check tokens against a collection of bounded matches coll.
(closer marker)
RE to match strings which close emphasis with the given marker.
RE to match strings which close emphasis with the given marker.
(delimiter-run marker)
RE to match delimiter runs of the given marker.
RE to match delimiter runs of the given marker.
(demarcate spans)
Tags the spans with bounds information.
Tags the spans with bounds information.
(from-string string claimed)
Parses string into a sequence of spans.
Parses string into a sequence of spans.
(innermost-pairs spans)
A sequence of pairs included in spans, such that no other pair exists within any of those returned. A couple of spans x and y qualify as a pair if (pair? x y) evaluates to true.
A sequence of pairs included in spans, such that no other pair exists within any of those returned. A couple of spans x and y qualify as a pair if (pair? x y) evaluates to true.
(opener marker)
RE to match strings which open emphasis with the given marker.
RE to match strings which open emphasis with the given marker.
(orientate spans)
Tags the spans with :left and :right, as appropriate.
Tags the spans with :left and :right, as appropriate.
(outermost string)
(outermost string claimed)
Sequence of outermost emphasis spans within string. Spans are represented by :match, :start and :end keys within a hash.
Sequence of outermost emphasis spans within string. Spans are represented by :match, :start and :end keys within a hash.
(pair? x y)
True if spans x and y delimit emphasis, false otherwise.
True if spans x and y delimit emphasis, false otherwise.
(pairs spans)
(pairs previous spans)
Set of pairs included in spans.
Set of pairs included in spans.
(remove-pair spans [left right])
Removes the pair defined by left and right from the spans pool and updates the bounds information accordingly. If the respective delimiter runs are reduced to zero, then left, right and all intermediate spans are removed from the pool.
Removes the pair defined by left and right from the spans pool and updates the bounds information accordingly. If the respective delimiter runs are reduced to zero, then left, right and all intermediate spans are removed from the pool.
(snip string [left right])
Substring of string corresponding to the bounds defined by left and right.
Substring of string corresponding to the bounds defined by left and right.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close