← Back to printmd

Markdown Guide

Learn Markdown syntax quickly

Headings

Start a line with # to make a heading. Six levels are supported.

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

Emphasis

Make text bold, italic or struck through.

Markdown syntax
**bold text** or __bold text__
*italic text* or _italic text_
~~strikethrough~~
***bold and italic***

Lists

Write bulleted and numbered lists.

Markdown syntax
Bulleted list:
- Item 1
- Item 2
  - Nested item
  - Nested item
- Item 3

Numbered list:
1. First
2. Second
3. Third

Images

Insert an image.

Markdown syntax
![alt text](image-url)
![alt text](image-url "Image title")

Code

Write inline code and code blocks.

Markdown syntax
Inline code: `const x = 1;`

Code block:
```javascript
function hello() {
  console.log("Hello, World!");
}
```

```python
def hello():
    print("Hello, World!")
```

Blockquotes

Start a line with > to quote it.

Markdown syntax
> This is a quote.
>
> It can span several lines.

> Nested quote
>> A deeper quote

Tables

Build tables with pipes (|) and hyphens (-).

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

Alignment:
| Left | Center | Right |
|:-----|:------:|------:|
| L    |   C    |     R |

Horizontal Rules

Three or more hyphens, asterisks or underscores make a horizontal rule.

Markdown syntax
---
***
___

Convert your Markdown to PDF

Try the Markdown syntax you learned right here on printmd

Start printmd