Skip to content

Instantly share code, notes, and snippets.

@alexpeattie
Created February 7, 2013 07:32
Show Gist options
  • Save alexpeattie/4729247 to your computer and use it in GitHub Desktop.
Save alexpeattie/4729247 to your computer and use it in GitHub Desktop.
Disable Github-flavored Markdown autolinking

http://example.com

http://<span></span>example.com
@nitzmahone
Copy link

Did some more poking around for options that wouldn't noticeably affect formatting- the one that seems to work on everything I've tried is embedding &zwnj; (zero-width-non-joiner)- used for controlling ligature behavior, so should be a no-op in most interesting cases that get auto-linked with URLs, PR numbers, etc.

https:&zwnj;//example.com -> https:‌//example.com
ansible/ansible#&zwnj;83065 -> ansible/ansible#‌83065

We got nailed by this recently when a file size in a release note ended up mapping to a shortened commit SHA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment