anchor.diff:  
     String readmeFilename;
     String renderedReadme;
  -  final homepageUrl = selectedVersion.homepage;
  +  final packageLinks = selectedVersion.packageLinks;
  +  final baseUrl = packageLinks.repositoryUrl ?? packageLinks.homepageUrl;
     if (selectedVersion.readme != null) {
       readmeFilename = selectedVersion.readme.filename;
  -    renderedReadme = renderFile(selectedVersion.readme, homepageUrl);
  +    renderedReadme = renderFile(selectedVersion.readme, baseUrl);
     }
   
     String changelogFilename;
     String renderedChangelog;
     if (selectedVersion.changelog != null) {
       changelogFilename = selectedVersion.changelog.filename;
  -    renderedChangelog = renderFile(selectedVersion.changelog, homepageUrl);
  +    renderedChangelog = renderFile(selectedVersion.changelog, baseUrl);
     }
   
     String exampleFilename;
     String renderedExample;
     if (selectedVersion.example != null) {
       exampleFilename = selectedVersion.example.filename;
  -    renderedExample = renderFile(selectedVersion.example, homepageUrl);
  +    renderedExample = renderFile(selectedVersion.example, baseUrl);
       if (renderedExample != null) {
         renderedExample = '<p style="font-family: monospace">'
             '<b>${htmlEscape.convert(exampleFilename)}</b>'
  
positive.code:     version: selectedVersion.version,
      isLatest: selectedVersion.version == package.latestVersion,
    );
    final packageLinks = selectedVersion.packageLinks;
  
    final links = <Map<String, dynamic>>[];
    void addLink(
  
negative.code:   }
  
    if (packageLinks.repositoryUrl != packageLinks.homepageUrl) {
      addLink(packageLinks.homepageUrl, 'Homepage');
    }
    addLink(packageLinks.repositoryUrl, 'Repository',
        detectServiceProvider: true);
  