code: function smartquotes(context) {
    if (typeof document !== 'undefined' && typeof context === 'undefined') {
      listen.runOnReady(() => element(document.body));
      return smartquotes;
    } else if (typeof context === 'string') {
      return string(context);
    } else {
      return element(context);
    }
  }
docs: The smartquotes function should just delegate to the other functions