(autolink-fix ast)
Unfold :autolink into :a with a :txt child.
Unfold :autolink into :a with a :txt child.
(backslash-fix ast)
Cleans up backslash escapes where necessary.
Cleans up backslash escapes where necessary.
(blank-fix ast)
Removes :blank entities from the AST.
Removes :blank entities from the AST.
Shorthand for calling block-with-hbr-end? with a predicate which checks for backslash.
Shorthand for calling block-with-hbr-end? with a predicate which checks for backslash.
(block-with-hbr-end? pred)
True if the node is a block and its last child is an :hbr whose content satisfies pred, false otherwise.
True if the node is a block and its last child is an :hbr whose content satisfies pred, false otherwise.
Shorthand for calling block-with-hbr-end? with a predicate which checks for space.
Shorthand for calling block-with-hbr-end? with a predicate which checks for space.
(coalesce-txt ast)
Merges adjacent :txt nodes.
Merges adjacent :txt nodes.
(empty-block-fix ast)
Removes empty :p entities from the AST.
Removes empty :p entities from the AST.
True if all of the following apply to the parameter:
True if all of the following apply to the parameter: * is a block * either has no children or all its children are empty text nodes Returns false otherwise.
True if the node * either has no children or all its children are empty text nodes, false otherwise.
True if the node * either has no children or all its children are empty text nodes, false otherwise.
(empty-p-fix ast)
Removes empty :p entities from the AST.
Removes empty :p entities from the AST.
True if all of the following apply to the parameter:
True if all of the following apply to the parameter: * is a paragraph * either has no children or all its children are empty text nodes Returns false otherwise.
True if the parameter is a text node whose :content is either nil or "".
True if the parameter is a text node whose :content is either nil or "".
(group-list-items ast)
Groups adjacent matching :li nodes into :list nodes.
Groups adjacent matching :li nodes into :list nodes.
(hbr-fix ast)
Deals with :hbr entities at the end of blocks.
Deals with :hbr entities at the end of blocks.
(html-entity-fix ast)
Replaces HTML entities where necessary.
Replaces HTML entities where necessary.
A collection of post-processing fixes to apply to the AST.
A collection of post-processing fixes to apply to the AST.
(remove-link-reference-definitions ast)
Removes nodes tagged with :adef.
Removes nodes tagged with :adef.
(trim-txt ast)
Strips both tabs and spaces from the end of the content of :txt nodes if:
Strips both tabs and spaces from the end of the content of :txt nodes if: * it precedes a hard line break * it precedes a soft line break * it is the last node (i.e. no sibling follows it)
(unescape string)
Cleans up backslash escapes.
Cleans up backslash escapes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close