nl_tokens: Insert pasted content into correct positions of parsed node
pl_tokens: function insertPastedContent ( <mask> , content , overwrite ) { var nodesWithPlaceholders = node . findAll ( function ( item ) { return hasOutputPlaceholder ( item ) ; } ) ; if ( hasOutputPlaceholder ( node ) ) nodesWithPlaceholders . unshift ( node ) ; if ( nodesWithPlaceholders . length ) { _ . each ( nodesWithPlaceholders , function ( item ) { item . content = replaceOutputPlaceholders ( item . content , content ) ; _ . each ( item . _attributes , function ( attr ) { attr . value = replaceOutputPlaceholders ( attr . value , content ) ; } ) ; } ) ; } else { // on output placeholders in subtree, insert content in the deepest // child node var deepest = node . deepestChild ( ) || node ; if ( overwrite ) { deepest . content = content ; } else { deepest . content = require ( 'abbreviationUtils' ) . insertChildContent ( deepest . content , content ) ; } } }