Markdown Automatic Links
Automatic links (or autolinks) allow you to quickly turn URLs and email addresses into clickable links without using the full link syntax.
Standard Autolinks
To create a standard autolink, wrap the URL or email address in angle brackets (< and >).
Extended Autolinks (GFM)
Many modern Markdown processors (like GitHub Flavored Markdown) will automatically link URLs even without the angle brackets, as long as they start with http://, https://, or www..
Email Address Security
When you use the <[email protected]> syntax, some Markdown parsers will automatically "obfuscate" the email address in the rendered HTML. This means they convert the characters into HTML entities to make it slightly harder for spam bots to scrape the address, while still allowing it to work perfectly for human users when clicked. This corresponds to a mailto: link in HTML.
Tips for Autolinks
- Brackets for Precision: If your URL is followed immediately by punctuation, using the
<...>syntax ensures the punctuation isn't accidentally included in the link. - Explicit vs Automatic: If you want the link text to be something other than the URL itself (like "Click Here"), you must use the standard link syntax we covered in the Markdown Links lesson.