---
title: "Markdown Tutorial"
cato: tutorial
labels:
  - markdown
  - learning
  - guide
time: "2024-01-12"
---

Markdown is a lightweight markup language for creating formatted text using a plain-text editor. It's widely used for documentation, README files, and blogging.

## Headings

Use `#` for headings. The number of `#` symbols indicates the heading level.

```markdown
# Heading 1
## Heading 2
### Heading 3
```

## Emphasis

- *Italic*: `*text*` or `_text_`
- **Bold**: `**text**` or `__text__`
- ***Bold and Italic***: `***text***`

## Lists

### Unordered List

```markdown
- Item 1
- Item 2
    - Subitem
* Another item
```

- Item 1
- Item 2
  - Subitem

* Another item

### Ordered List

```markdown
1. First item
2. Second item
     1. Subitem
```

1. First item
2. Second item
     1. Subitem

## Links

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

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

## Images

```markdown
![Alt Text](https://example.com/image.png)
```

## Code

### Inline Code

Use backticks: `` `code` ``

### Code Block

<pre>
```language
// Example in JavaScript
console.log('Hello, world!');
```
</pre>

## Blockquotes

```markdown
> This is a blockquote.
>> Nested blockquote.
```

> This is a blockquote.
>> Nested blockquote.

## Tables

```markdown
| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |
```

| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

## Horizontal Rules

Three or more dashes, asterisks, or underscores:

```markdown
---
***
___
```

---
***
___

## Escaping Characters

Use a backslash `\` before special characters:

```markdown
\*Not italic\*
```

\*Not italic\*

---

## Conclusion

Markdown is simple yet powerful for formatting text. Practice these basics to create well-structured documents!
