Module: html2wt/separators

Methods

(inner) buildSep(state, 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
state Object
node Node
Source:
Returns:
Type
string

(inner) updateSeparatorConstraints(state, nodeA, sepHandlerA, nodeB, sepHandlerB)

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
state Object
nodeA Node
sepHandlerA DOMHandler
nodeB Node
sepHandlerB DOMHandler
Source: