Links, Images, and Tables

Markdown provides a simple syntax for adding links, images, and tables to your documents.

Use square brackets [ ] for the link text and parentheses ( ) to enclose the URL:

[Link Text](https://example.com)

Add a title by including text in quotes after the URL:

[Link Text](https://example.com "Optional Title")

Hovering will show “Optional Title”.

Toucan automatically generates HTML IDs (anchors) for headings.
• Headings become lowercase, words are separated by hyphens.
• Special characters are usually stripped.

You can use it by writing a hashtag (#) and attach the generated ID afterwards:

[Link Text](/docs/template-basics/change-the-site-logo/#option-2-modify-the-template-instead)

Images

Basic Images

Similar to links, but with an exclamation mark ! at the beginning:

![Alt Text](https://example.com/image.jpg)

The image URL can be relative or absolute:

![Setup illustration](docs/setup.png)   <!-- relative path to an image in your repo -->
![Docs preview](https://example.com/docs/cover.png)   <!-- absolute external image -->

Images with Titles

Add a title in quotes for extra context:

![Alt Text](https://example.com/image.jpg "Optional Title")

Tables

Use pipes | and dashes - to create tables:

| Syntax   | Description |
| ----- | ----- |
| **Bold** | Bold text   |
| _Italic_ | Italic text |

Code Blocks

Inline Codes

Wrap code in backticks:

`inline code`

Multi-line Codes

Use triple backticks (```) to format multi-line code blocks:

function example() {
console.log("Hello, Markdown!");
}

Troubleshooting

  • Keep case sensitivity in mind to avoid mistakes.
  • File naming conventions: Avoid spaces and use hyphens(-) and dashes(_) instead and stick to lowercase.

Wrapping up

Markdown provides a simple way to include links, images, tables, and code in your content. Master these features to create well-structured and visually appealing documents!