Markdown Syntax

Markdown syntax reference with examples for formatting text.

Headers

# H1

Heading level 1

## H2

Heading level 2

### H3

Heading level 3

#### H4

Heading level 4

##### H5

Heading level 5

###### H6

Heading level 6

Emphasis

*italic* or _italic_

Italic text

**bold** or __bold__

Bold text

***bold italic***

Bold and italic

~~strikethrough~~

Strikethrough text

`code`

Inline code

Lists

- Item\n- Item

Unordered list (bullets)

* Item\n* Item

Unordered list (alternative)

1. Item\n2. Item

Ordered list (numbered)

- [ ] Todo\n- [x] Done

Task list (checkboxes)

- Nested

Nested list (indent 2 spaces)

Links & Images

[Link text](https://url.com)

Hyperlink

[Link](url "Title")

Link with title

![Alt text](image.jpg)

Image

![Alt](image.jpg "Title")

Image with title

<https://url.com>

Automatic link

[id]: https://url.com

Reference-style link definition

Code Blocks

```\ncode\n```

Code block (fenced)

```javascript\ncode\n```

Code block with syntax highlighting

code

Code block (indented 4 spaces)

Blockquotes & Horizontal Rules

> Quote

Blockquote

> Quote\n>> Nested

Nested blockquote

---

Horizontal rule

***

Horizontal rule (alternative)

___

Horizontal rule (alternative)

Tables

| Header |\n| ------ |\n| Cell |

Basic table

| Left | Center | Right |\n|:-----|:------:|------:|\n| L | C | R |

Table with alignment

| Header 1 | Header 2 |\n| -------- | -------- |\n| Cell 1 | Cell 2 |

Multi-column table

Advanced

[^1]

Footnote reference

[^1]: Footnote text

Footnote definition

- [x] Task

Completed task

:emoji:

Emoji (GitHub flavored)

\*escaped\*

Escape special characters