Link previews
A bare URL on its own line becomes a link card instead of a bare link. The card shows the page
title, a short description, the site name, and the preview image when the page offers one.
Links inside a sentence stay plain inline links.
Cards work everywhere content renders: posts, gists, projects, news, comments, and live chat
messages. Internal links to posts, gists, projects and news resolve from the site itself and
never leak titles of content you are not allowed to see. Deleted, draft and offline items, and
private projects of other users, stay plain links for anyone without access.
External pages are unfurled on the server with capped fetch sizes and timeouts, cached for a
week, and refused when the host cannot be reached safely. The JSON form lives at
GET /link-preview?url= for full URLs and GET /link-preview/resolve?path= for site paths
such as /posts/abc123.