Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a syntax for links with no text in Markdown?

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?

like image 345
Marco Eckstein Avatar asked Jul 22 '14 12:07

Marco Eckstein


People also ask

What is the syntax to insert a link in Markdown?

Markdown syntax for a hyperlink is square brackets followed by parentheses. The square brackets hold the text, the parentheses hold the link.

How do you use Markdown syntax?

When you create a Markdown-formatted file, you add Markdown syntax to the text to indicate which words and phrases should look different. For example, to denote a heading, you add a number sign before it (e.g., # Heading One ).

How do I create a link in readme MD?

To link inline, type the text you want to link within brackets, "[x]", followed directly by the link URL parentheses, "(y)". Reference-style linking allows you to give a link a number or "name" and refer to it multiple times.

How do you make a code block in Markdown?

The basic Markdown syntax allows you to create code blocks by indenting lines by four spaces or one tab. If you find that inconvenient, try using fenced code blocks. Depending on your Markdown processor or editor, you'll use three backticks ( ``` ) or three tildes ( ~~~ ) on the lines before and after the code block.


1 Answers

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> 
like image 81
Chris Avatar answered Sep 27 '22 16:09

Chris