Liking cljdoc? Tell your friends :D

cljmd.ast.postprocessing


(autolink-fix ast)

Unfold :autolink into :a with a :txt child.

Unfold :autolink into :a with a :txt child.
sourceraw docstring

backslash-fixclj

(backslash-fix ast)

Cleans up backslash escapes where necessary.

Cleans up backslash escapes where necessary.
sourceraw docstring

blank-fixclj

(blank-fix ast)

Removes :blank entities from the AST.

Removes :blank entities from the AST.
sourceraw docstring

block-with-backslash-hbr-end?clj

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.
sourceraw docstring

block-with-hbr-end?clj

(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.
sourceraw docstring

block-with-space-hbr-end?clj

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.
sourceraw docstring

coalesce-txtclj

(coalesce-txt ast)

Merges adjacent :txt nodes.

Merges adjacent :txt nodes.
sourceraw docstring

empty-block-fixclj

(empty-block-fix ast)

Removes empty :p entities from the AST.

Removes empty :p entities from the AST.
sourceraw docstring

empty-block?clj

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 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.
sourceraw docstring

empty-children?clj

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.
sourceraw docstring

empty-p-fixclj

(empty-p-fix ast)

Removes empty :p entities from the AST.

Removes empty :p entities from the AST.
sourceraw docstring

empty-paragraph?clj

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 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.
sourceraw docstring

empty-text?clj

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 "".
sourceraw docstring

group-list-itemsclj

(group-list-items ast)

Groups adjacent matching :li nodes into :list nodes.

Groups adjacent matching :li nodes into :list nodes.
sourceraw docstring

hbr-fixclj

(hbr-fix ast)

Deals with :hbr entities at the end of blocks.

Deals with :hbr entities at the end of blocks.
sourceraw docstring

html-entity-fixclj

(html-entity-fix ast)

Replaces HTML entities where necessary.

Replaces HTML entities where necessary.
sourceraw docstring

queueclj

A collection of post-processing fixes to apply to the AST.

A collection of post-processing fixes to apply to the AST.
sourceraw docstring

(remove-link-reference-definitions ast)

Removes nodes tagged with :adef.

Removes nodes tagged with :adef.
sourceraw docstring

trim-txtclj

(trim-txt ast)

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)
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)
sourceraw docstring

unescapeclj

(unescape string)

Cleans up backslash escapes.

Cleans up backslash escapes.
sourceraw docstring

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

× close