Markdown Syntax Reference

Complete guide to Markdown formatting with examples

Headings

Markdown

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Result

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Text Formatting

Markdown

**Bold text**
*Italic text*
***Bold and italic***
~~Strikethrough~~
`Inline code`

Result

Bold text

Italic text

Bold and italic

Strikethrough

Inline code

Lists

Unordered List

- Item 1
- Item 2
  - Nested item
  - Another nested
- Item 3

Result

  • Item 1
  • Item 2
    • Nested item
    • Another nested
  • Item 3

Ordered List

1. First item
2. Second item
3. Third item
   1. Nested item
   2. Another nested

Result

  1. First item
  2. Second item
  3. Third item
    1. Nested item
    2. Another nested

Links and Images

Markdown

[Link text](https://example.com)
[Link with title](https://example.com "Title")

![Alt text](image.jpg)
![Image with title](image.jpg "Title")

Result

Link text

Link with title

Images would display here

Code Blocks

Markdown

```javascript
function greet(name) {
    console.log(`Hello, ${name}!`);
}
```

Result

function greet(name) {
    console.log(`Hello, ${name}!`);
}

Tables

Markdown

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

Result

Header 1 Header 2 Header 3
Cell 1 Cell 2 Cell 3
Cell 4 Cell 5 Cell 6

Blockquotes

Markdown

> This is a blockquote
> It can span multiple lines
>
> And have paragraphs

Result

This is a blockquote
It can span multiple lines

And have paragraphs

Horizontal Rules

Markdown

---
or
***
or
___

Result


Quick Reference

Element Syntax
Heading # H1 ## H2 ### H3
Bold **bold text**
Italic *italic text*
Link [title](https://url.com)
Image ![alt](image.jpg)
Code `code`
Code Block ```language```
Unordered List - item
Ordered List 1. item
Blockquote > quote
Horizontal Rule ---