Newer
Older
labs / tiddlers / system / cheatsheet / $__Cheatsheet_Cheatsheet_Markdown_Links.md

URLs will be converted to links automatically:

https://google.com

Produces:

https://google.com

If you want to change the text that is displayed then use:

[Google](https://google.com)

Produces:

Google

This can be embedded in the middle of other text if needed.

There are a couple of macros for creating internal links from Tiddler titles:

<<linkFromPath path:"$:/Cheatsheet/Contents" text:"Cheatsheet Contents">>

Produces:

<>

The path is the full title of the Tiddler.

This following produces a section number link (similar to \ref in LaTeX):

<<sectionFromPath "$:/Cheatsheet/Contents">>

Assuming the Contents page has a section field (which it doesn't), the section number would be displayed with a link to that Tiddler.

Be careful with spaces before the closing angle brackets with macros --- the Markdown parser is a bit fragile and will break if there are spaces.