index.js
function onText (text) {
    if (!current || !text) return;
    titles.push(text);
    self.emit('title', text);
  }
function onText (text) {
    if (!current || !text) return;
    titles.push(text);
    self.emit('title', text);
  }
function onText ( text ) { if ( ! current || ! text ) return ; titles . push ( text ) ; self . emit ( 'title' , text ) ; }
If we are in a title node then push on the text

@param {String} text
If we are in a title node then push on the text