Cheat Sheet

Markdown Cheat Sheet

Quick reference for the CommonMark and GitHub Flavored Markdown syntax.

Headings

# H1
## H2
### H3
#### H4
##### H5
###### H6

Emphasis

*italic* or _italic_
**bold** or __bold__
***bold italic***
~~strikethrough~~
`inline code`

Lists

- Unordered item
- Another item
  - Nested item

1. Ordered item
2. Second item

- [x] Task done
- [ ] Task to do

Links & Images

[link text](https://example.com "optional title")
![alt text](image.png)
[reference][id]

[id]: https://example.com

Code Blocks

```javascript
const x = 1;
```

    Indented code (4 spaces) also works.

Blockquotes & Rules

> A quoted paragraph.
>> Nested quote.

---  (horizontal rule)

Tables

| Column A | Column B |
| -------- | -------: |
| Left     |    Right |
| Cell     |     Cell |

GFM Extras

  • Auto-link bare URLs: https://example.com
  • Footnotes: Here is a note.[^1] then [^1]: Note text.
  • Mention users with @username on supported platforms.