nl_tokens: Checks if the paragraph has no text .
pl_tokens: function paragraphHasNoText ( text ) { // Strip links and check if paragraph consists of links only text = removeLinksFromText ( text ) ; if ( text === "" ) { return true ; } <mask> = removeImagesFromText ( text ) ; if ( text === "" ) { return true ; } // Remove empty divisions from the text const emptyDivisions = findEmptyDivisions ( text ) ; if ( emptyDivisions . length < 1 ) { return false ; } emptyDivisions . forEach ( function ( emptyDivision ) { text = text . replace ( emptyDivision , "" ) ; } ) ; return text === "" ; }