Pass in some more spec data, so local links will properly show up as being for their own spec.
Filter out non-local refs to the local spec, so you don't accidentally link to something that's been removed from the local copy.