Is there a syntax for links with no text in Markdown?
Solution 1
Yes, here is the relevant section of the documentation:
AUTOMATIC LINKS
Markdown supports a shortcut style for creating “automatic” links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
<http://example.com/>
Markdown will turn this into:
<a href="http://example.com/">http://example.com/</a>
Solution 2
I find this works with my IDE nicely, wrapping the link in an <a>
tag:
<a>http://example.com/</a>
Related videos on Youtube
Marco Eckstein
Diplom-Informatiker (equivalent to Master of Computer Science) Professional and hobbyist software developer Kotlin Java C# SQL Typescript/JavaScript Angular React Selenium WebDriver Spring Boot Clean code Musician / guitar player
Updated on September 26, 2022Comments
-
Marco Eckstein over 1 year
I want to write
http://www.foo.com/
and get a link with the URL as the text (e.g., in HTML output). I do not want to write
[http://www.foo.com/](http://www.foo.com/)
Is it possible?
-
realbart almost 7 yearsCan you do this without the HTTP-prefix? (this is useful for a markdown-based wiki, here you want to mark some <keywords> als links...
-
-
Aprillion almost 10 years
-
realbart almost 7 years@Chris Can you do this without the HTTP-prefix? (this is useful for a markdown-based wiki, here you want to mark some <keywords> als links...
-
Chris almost 7 years@realbart, most wikis provide a way to easily link to pages. I would read the documentation of whatever wiki you are using and see how it handles this.
-
Chris over 4 yearsDoes that actually link to
http://example.com/
? Or does it create a link to nothing? Or maybe to the current page?