THE GITHTML FIELD GUIDE

Choose explicit Markdown links when automatic linking is unreliable

Use an explicit Markdown link when a bare URL is not linked correctly or when its visible text should describe the destination. Automatic linking varies between Markdown processors. Keep sentence punctuation outside the destination and verify the rendered target, especially for URLs containing parentheses, query strings, or fragments.

Separate readability from automatic recognition

A pasted address is convenient while drafting, but a long URL can obscure the sentence's meaning. Decide what the reader should expect after following it: a configuration reference, a download, or a troubleshooting explanation. Use that expectation as the link label. Avoid a generic click here when the destination can be named precisely. A link label is a promise about the target, so do not call a general homepage an installation guide. Automatic linking is useful for displaying an address as an address, but it should not determine the structure of an explanatory paragraph.

Inspect punctuation at the destination boundary

When a link breaks, copy the actual rendered destination rather than only reading its displayed text. A final period or unmatched parenthesis may have been interpreted as part of the URL, or a processor may not recognize a bare address at all. Use the explicit syntax in the sample for ordinary prose. For unusually complex destinations, consult the parser's documented link syntax and prefer a stable canonical URL where available. Do not strip meaningful query parameters merely to make the text shorter. First understand whether they identify content, control access, or are unnecessary tracking information.

markdown
Read the [sample configuration reference](https://example.com/docs/configuration).

Address shown explicitly: <https://example.com/docs/configuration>

Validate the destination's meaning and audience

Follow the link in the intended context and check that it reaches the promised section. A successful response code is not enough if the page redirects to a generic landing page or requires access the audience lacks. For a public guide, avoid embedding sensitive tokens or private identifiers in the URL. Check relative links through the actual publishing pipeline because a repository preview may rewrite them differently from a standalone export. Revisit links when surrounding claims change. The correct target for a setup instruction may be different from the correct target for a conceptual explanation, even when both share the same product name. When a destination is unavailable, state that limitation instead of silently linking a different page. Readers need to know whether the missing reference changes their ability to complete the documented task.

  1. Replace an ambiguous bare address with a destination-specific label.
  2. Copy the rendered target to inspect punctuation and parameters precisely.
  3. Check whether the intended audience can access the destination without exposing private tokens.
  4. Recheck version-specific and fragment links after updates to either the source guide or the target documentation.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All markdown and readme files guides →

Read as MarkdownAll guides

Choose explicit Markdown links when automatic linking is unreliable · gitHtml