nl_tokens: Gets all the level 2 and 3 subheadings from the text and returns these in an array .
pl_tokens: function getSubheadingsTopLevel ( text ) { const subheadings = [ ] ; const regex = / <h([2-3])(?:[^>]+)?>(.*?)<\/h\1> / ig ; let match ; while ( ( <mask> = regex . exec ( text ) ) !== null ) { subheadings . push ( match ) ; } return subheadings ; }