Difference between revisions of "Markdown link"

From Community Pnut.io Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
Pnut supports the style of markdown link specified on Daring Fireball (https://daringfireball.net/projects/markdown/syntax#link) with a couple nuances.
 
Pnut supports the style of markdown link specified on Daring Fireball (https://daringfireball.net/projects/markdown/syntax#link) with a couple nuances.
 +
 +
  
 
This would create a link around text, with the link's domain appended for transparency:
 
This would create a link around text, with the link's domain appended for transparency:
  
 
<pre>
 
<pre>
[text](https://example.link/path/path "Optional title")
+
[text](https://www.example.link/path/path "Optional title")
  
 
text [example.link]
 
text [example.link]
 
</pre>
 
</pre>
 +
 +
Note that "www" subdomains are ignored on the appended domain.
 +
 +
  
 
If your text is the same as the *domain* in the link, then the domain won't be appended.
 
If your text is the same as the *domain* in the link, then the domain won't be appended.
Line 16: Line 22:
 
example.link
 
example.link
 
</pre>
 
</pre>
 +
  
 
== Links ==
 
== Links ==
  
 
* https://pnut.io/docs/api/implementation/entities - API explanation
 
* https://pnut.io/docs/api/implementation/entities - API explanation

Revision as of 07:30, 11 October 2018

Pnut supports the style of markdown link specified on Daring Fireball (https://daringfireball.net/projects/markdown/syntax#link) with a couple nuances.


This would create a link around text, with the link's domain appended for transparency:

[text](https://www.example.link/path/path "Optional title")

text [example.link]

Note that "www" subdomains are ignored on the appended domain.


If your text is the same as the *domain* in the link, then the domain won't be appended.

[example.link](https://example.link/path/path)

example.link


Links