Markdown cheat sheet
Every piece of Markdown syntax, with what you type on the left and what you get on the right. Try any of it in the live editor.
Basics
Headings
# Heading 1
## Heading 2
### Heading 3Heading 1
Heading 2
Heading 3
Emphasis
*italic* or _italic_
**bold** or __bold__
***bold italic***
~~strikethrough~~italic or italic
bold or bold
bold italic
strikethrough
Paragraphs and line breaks
A blank line starts a new paragraph.
End a line with two spaces
for a line break inside a paragraph.A blank line starts a new paragraph.
End a line with two spaces
for a line break inside a paragraph.
Links
[Link text](https://vivekbhange.tech)
[Link with a title](https://vivekbhange.tech "Hover text")
Bare URLs become links: https://example.comImages

Blockquotes
> A quote.
>
> > A quote inside a quote.A quote.
A quote inside a quote.
Horizontal rule
Above
---
BelowAbove
Below
Lists
Bullet list
- Apples
- Oranges
- Blood oranges
- Pears- Apples
- Oranges
- Blood oranges
- Pears
Numbered list
1. First
2. Second
3. Third- First
- Second
- Third
Task list
- [x] Write the draft
- [ ] Review it
- [ ] PublishCode
Inline code
Run `npm install` first.Run npm install first.
Code block with highlighting
```python
def greet(name):
return f"Hello, {name}!"
```def greet(name):
return f"Hello, {name}!"
Tables
Table
| Name | Role |
| ----- | -------- |
| Asha | Design |
| Ravi | Backend || Name | Role |
|---|---|
| Asha | Design |
| Ravi | Backend |
Column alignment
| Left | Centre | Right |
| :--- | :----: | ----: |
| a | b | c || Left | Centre | Right |
|---|---|---|
| a | b | c |
Extras
Footnotes
Here is a claim.[^1]
[^1]: And here is its source.Maths (KaTeX)
Inline: $a^2 + b^2 = c^2$
Block:
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$Inline:
Block:
Diagrams (Mermaid)
```mermaid
flowchart LR
A --> B --> C
```Renders as a flowchart in the editor.
Escaping
\*Not italic\* and \# not a heading*Not italic* and # not a heading