zudo-doc
GitHub repository

Type to search...

to open search from anywhere

GitHub Autolinks

Created May 28, 2026Takeshi Takatsudo

Auto-links bare issue numbers, cross-repo references, and commit SHAs to GitHub.

The GitHub Autolinks feature turns bare references to GitHub issues, pull requests, and commits into real hyperlinks pointing at a configured repository. Write #123 in prose and it becomes a link to that issue — no manual URL needed.

Note

Enable it with the githubAutolinks key in zfb.config.ts. The repo field is mandatory — the feature stays inactive without it:

// zfb.config.ts export default defineConfig({ markdown: { features: { githubAutolinks: { repo: "zudolab/zudo-doc", }, }, }, });

Recognized forms

Three reference forms are auto-linked. zudo-doc configures repo: "zudolab/zudo-doc", so the default repository in the examples below is zudolab/zudo-doc:

Source (what you type)Resolves to
#123https://github.com/zudolab/zudo-doc/issues/123
owner/repo#123https://github.com/owner/repo/issues/123
40-character commit SHAhttps://github.com/zudolab/zudo-doc/commit/<sha>

Live demo

Each reference below is plain prose, so the feature transforms it into a link at build time. Hover or click to confirm the target:

Scope

  • References inside inline code (`#123`) or fenced code blocks are not transformed — that is how the syntax in the table above stays literal.

  • Text already wrapped in an anchor tag is left alone, preventing double-linking.

  • A cross-repository reference uses its own embedded owner/repo, not the globally configured repo.

  • Pure decimal-digit sequences are treated as plain numbers, not commit hashes.

Revision History

Takeshi TakatsudoCreated: 2026-05-29T01:46:14+09:00Updated: 2026-05-29T01:46:14+09:00

AI Assistant

Ask a question about the documentation.