Markdown Linking

From WikiOD

Inline Link[edit | edit source]

The form for a link in markdown is as follows.

[Shown Text](Link)

For example, This will take you to Example.com is created with

[This will take you to Example.com](http://www.example.com)

Reference Link[edit | edit source]

URLs for links can be specified later in the document.

Markdown

[Text1][1] will link to the first link, and [Text2][2] to the second.
You [can reuse][1] names, and give longer names [like this one][a link].
You can also link text [like this] without giving the reference an explicit name.

[1]: http://www.google.com
[2]: http://stackoverflow.com/
[a link]: http://example.org/
[like this]: http://stackexchange.com/

Output

Text1 will link to the first link, and Text2 to the second. You can reuse names, and give longer names like this one. You can also link text like this without giving the reference an explicit name.

Named anchors (link to a fragment of page)[edit | edit source]

create destination with

<a id="destinationLinkName"></a>

link to destination

[link text](#destinationLinkName)

Credit:Stack_Overflow_Documentation