← Back to EasyMD

Markdown syntax guide

Every piece of Markdown syntax, with the source and the result side by side

📌 Headings

The number of # characters sets the level, from H1 down to H6.

Markdown source
# 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

✏️ Emphasis

Asterisks (*) or underscores (_) give you bold, italic, and strikethrough.

Markdown source
**bold** or __bold__
*italic* or _italic_
***bold and italic***
~~strikethrough~~
Result

bold or bold

italic or italic

bold and italic

strikethrough

🔗 Links

Link text goes in square brackets, the URL in parentheses.

Markdown source
[Go to EasyMD](https://easy-md.com)
[A relative link](/en/guide)
[A link with a title](https://example.com "Tooltip text")

🖼️ Images

Put an exclamation mark (!) in front of the link syntax and you get an image.

Markdown source
![alt text](image-url)
![EasyMD logo](https://easy-md.com/logo.svg)
Result

The image is loaded from the URL and displayed.
The alt text is what screen readers announce, and what appears if the image fails to load.

💻 Code

One backtick (`) for inline code, three for a code block.

Markdown source
`inline code`

```javascript
const greet = (name) => {
  return `Hello, ${name}!`;
};
```

```python
def greet(name):
    return f"Hello, {name}!"
```
Result

inline code

const greet = (name) => {
  return `Hello, ${name}!`;
};
def greet(name):
    return f"Hello, {name}!"

📊 Tables

Pipes (|) and hyphens (-) build the table. Where you put the colon (:) sets the column alignment.

Markdown source
| Name | Age | Role |
|:-----|:----:|-----:|
| Alex | 28 | Developer |
| Sam | 32 | Designer |
Result
NameAgeRole
Alex28Developer
Sam32Designer

💡 :--- left / :---: centre / ---: right

☑️ Task lists

To-do lists in the GitHub Flavored Markdown (GFM) style.

Markdown source
- [x] A finished item
- [ ] An unfinished item
- [x] Learn Markdown
- [ ] Write a document in EasyMD
Result
  • A finished item
  • An unfinished item
  • Learn Markdown
  • Write a document in EasyMD

💬 Blockquotes

An angle bracket (>) makes a quote, and they can be nested.

Markdown source
> This is a quote.
> It can run over several lines.
>
>> And quotes can be nested.
Result

This is a quote.
It can run over several lines.

And quotes can be nested.

➖ Horizontal rules

Three or more hyphens (-), asterisks (*), or underscores (_) on their own line.

Markdown source
---
***
___
Result

📝 Lists

Markdown source
Unordered list:
- Apple
- Banana
  - A nested item
- Cherry

Ordered list:
1. First
2. Second
3. Third
Result

Unordered list:

  • Apple
  • Banana
    • A nested item
  • Cherry

Ordered list:

  1. First
  2. Second
  3. Third

🚀 Put it straight to use

Open the EasyMD editor