@suluk/docs - v0.1.4
    Preparing search index...

    Function rewriteRepoLinks

    • Rewrite repo-RELATIVE markdown links (](../../doc/x.md), ](./y)) to absolute GitHub blob URLs so a README harvested into the site doesn't ship dead links. relDir is the package's path from the repo root (e.g. tooling/ts/packages/core); the link is resolved against it and normalized. Absolute links (http(s):, mailto:, protocol-relative), pure #anchors, and already-absolute paths are left untouched.

      Parameters

      • md: string
      • repoUrl: string
      • relDir: string
      • ref: string = "main"

      Returns string