code: function appendText(str, isPlainText) {
  		let i = newTokens.length - 1,
  			last = newTokens[i]
  
  		if (isPlainText) {
  			if (lastTextWasPlain && lastPlainTextWasSpaced) {
  				// Remove preceding spaces, since the last plain text
  				// ended in spaces
  				str = str.trimLeft()
  			}
  
  			str = str.replace(/(\s)\s+/g, '$1')
  			lastPlainTextWasSpaced = /^\s$/.test(str.substr(-1))
  		}
  		lastTextWasPlain = isPlainText
  
  		if (typeof last === 'string') {
  			newTokens[i] += str
  		} else {
  			newTokens.push(str)
  		}
  	}
docs: Append to the content of the text token at the tip
  (or add a new one if none exists yet)
  @param {string} str
  @param {boolean} isPlainText - remove some spaces