Module: html2wt/separators

Methods

(inner) buildSep(node) → {string}

Emit a separator based on the collected (and merged) constraints and existing separator text.

Emit a separator based on the collected (and merged) constraints and existing separator text. Called when new output is triggered.

Parameters:
Name Type Description
node Node
Source:
Returns:
Type
string

(inner) updateSeparatorConstraints(nodeA, handlerA, nodeB, handlerB)

Figure out separator constraints and merge them with existing constraints in state so that they can be emitted when the next content emits source.

Figure out separator constraints and merge them with existing constraints in state so that they can be emitted when the next content emits source.

Parameters:
Name Type Description
nodeA Node
handlerA function
nodeB Node
handlerB function
Source: