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