I would like to know how to avoid the automatic generation of links when I write down an URI in a site that accepts Markdown Language.
I know how to do it in this forum, by making use of the code blocks (for example): http://stackoverflow.com
But this trick doesn't work in some places (for example in http://datahub.io).
So given the basic markdown as described here: http://daringfireball.net/projects/markdown/syntax , how could I write down URIs to make them as plain text when parsed (or maybe, how to avoid the parser for a chunk of text, I suppose that would make the trick as well).
Any suggestion would be good appreciated.
JesĂşs.
I'm sure there is a better way, but this very nasty hack seems to do the trick:
http[]()://example.com/
I've jammed Markdown's radar with some empty markup (an empty link with no text).
I'm guessing nobody no mentioned this because it's anathema for markdown.... but you can just do this:
<span>https://example.com</span>
đź‘Ť
One solution to this is the use of HTML character entity references (AKA character codes):
https://www.example.com
example.com
This evalutes to:
https://www.example.com
example.com
You can use one of the named entities or the code point in decimal (&#nnnn;
) or hexadecimal (&#xhhhh;
) form, for any character that might trigger link detection.
A more aesthetically pleasing alternative to the first answer (breaking up the URL with []()
) is to insert your own HTML-like tag—call it whatever makes sense to you:
https<nolink>://example.com
Look Ma, no hyperlink!
https://example.com
Credit: https://meta.stackexchange.com/a/119811/411046
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With