A feature of StackExchange chat, "oneboxing" automatically inlines links that are posted on a single line by themselves.
This is explained in the FAQ as follows:
Some links will be automatically inlined if posted on a single line by themselves, such as:
- Stack Exchange questions, answers, and users
- Chat messages and rooms
- Images
- Wikipedia pages
- Amazon products
- Youtube videos
- Twitter messages
- Github gists
We call this "oneboxing". For example, entering the following in chat on a line by itself …
https://bicycles.stackexchange.com/questions/1678/what-are-the-reasons-for-and-against-wearing-a-bicycle-helmet
… will produce a onebox for that link, like so: