Markdown Syntax Cheat Sheet

Markdown is plain text that turns into formatted pages. Write what you type on the left, and you get what is on the right.

You typeYou get
# Heading 1The largest heading
## Heading 2A second-level heading
**bold**bold
*italic*italic
~~strike~~strike
`code`code inline
[text](https://example.com)A link
![alt text](image.png)An image
> quoteA block quote
---A horizontal rule

Lists

- Item one
- Item two
  - A nested item

1. First
2. Second

Use - or * for bullets and numbers for ordered lists. Indent two spaces to nest.

Code blocks

Wrap code in three backticks. Add the language after the opening fence to enable highlighting.

```js
console.log("hello");
```

Tables

| Name | Price |
| --- | --- |
| Pen | 10 |
| Book | 120 |

Tables are an extension available in GitHub Flavoured Markdown and most modern tools, but not in the original specification.

Tips

  • Leave a blank line between paragraphs and before lists.
  • To get a line break inside a paragraph, end the line with two spaces.
  • Escape special characters with a backslash, for example \*.
  • Always write alt text for images so they stay accessible.
↑ ↓ navigateEnter openEsc close