Markdown Syntax

Markdown syntax reference with examples for formatting text.

Headers

# H1

Heading level 1

Preview: <h1>H1</h1>
## H2

Heading level 2

Preview: <h2>H2</h2>
### H3

Heading level 3

Preview: <h3>H3</h3>
#### H4

Heading level 4

Preview: <h4>H4</h4>
##### H5

Heading level 5

Preview: <h5>H5</h5>
###### H6

Heading level 6

Preview: <h6>H6</h6>

Emphasis

*italic* or _italic_

Italic text

Preview: <em>italic</em>
**bold** or __bold__

Bold text

Preview: <strong>bold</strong>
***bold italic***

Bold and italic

Preview: <strong><em>bold italic</em></strong>
~~strikethrough~~

Strikethrough text

Preview: <del>strikethrough</del>
`code`

Inline code

Preview: <code>code</code>

Lists

- Item\n- Item

Unordered list (bullets)

Preview: • Item • Item
* Item\n* Item

Unordered list (alternative)

Preview: • Item • Item
1. Item\n2. Item

Ordered list (numbered)

Preview: 1. Item 2. Item
- [ ] Todo\n- [x] Done

Task list (checkboxes)

Preview: ☐ Todo ☑ Done
- Nested

Nested list (indent 2 spaces)

Preview: • Nested

Links & Images

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

Hyperlink

Preview: <a href="#">Link text</a>
[Link](url "Title")

Link with title

Preview: <a href="#" title="Title">Link</a>
![Alt text](image.jpg)

Image

Preview: <img src="#" alt="Alt text">
![Alt](image.jpg "Title")

Image with title

Preview: <img src="#" alt="Alt" title="Title">
<https://url.com>

Automatic link

Preview: <a href="#">https://url.com</a>
[id]: https://url.com

Reference-style link definition

Preview: Link reference

Code Blocks

```\ncode\n```

Code block (fenced)

Preview: <pre><code>code</code></pre>
```javascript\ncode\n```

Code block with syntax highlighting

Preview: <pre><code class="javascript">code</code></pre>
code

Code block (indented 4 spaces)

Preview: <pre><code>code</code></pre>

Blockquotes & Horizontal Rules

> Quote

Blockquote

Preview: <blockquote>Quote</blockquote>
> Quote\n>> Nested

Nested blockquote

Preview: <blockquote>Quote<blockquote>Nested</blockquote></blockquote>
---

Horizontal rule

Preview: <hr>
***

Horizontal rule (alternative)

Preview: <hr>
___

Horizontal rule (alternative)

Preview: <hr>

Tables

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

Basic table

Preview: Table with 1 column
| Left | Center | Right |\n|:-----|:------:|------:|\n| L | C | R |

Table with alignment

Preview: Left/Center/Right aligned
| Header 1 | Header 2 |\n| -------- | -------- |\n| Cell 1 | Cell 2 |

Multi-column table

Preview: 2x2 table

Advanced

[^1]

Footnote reference

Preview: Footnote¹
[^1]: Footnote text

Footnote definition

Preview: ¹ Footnote text
- [x] Task

Completed task

Preview: ☑ Task
:emoji:

Emoji (GitHub flavored)

Preview: 😊
\*escaped\*

Escape special characters

Preview: *escaped*