code: function resolve(ref, context) {
      if (typeof ref !== 'string') return ref;
      if (/^#/.test(ref)) { ref = (context._href || '/') + ref; }
      return generator.fragment$[ref];
    }
docs: resolve references to fragments directly or via href string