All cheat sheets
Cheat Sheet

Markdown

Complete Markdown syntax reference: headings, emphasis, lists, links, images, code blocks, tables, task lists, and GFM extensions.

Markdown is a lightweight markup language designed to be readable as plain text and convertible to HTML. The reference spec is CommonMark; GFM (GitHub Flavored Markdown) extends it with tables, task lists, and strikethrough.

Headings

MarkdownOutput
# Heading 1

Heading 1

## Heading 2

Heading 2

### Heading 3

Heading 3

#### Heading 4

Heading 4

Emphasis & Inline Formatting

**bold**bold
*italic*italic
***bold italic***bold italic
~~strikethrough~~strikethrough (GFM)
`inline code`inline code
[link](url)link

Lists

Unordered

- Item A
- Item B
  - Nested
  - Also nested
- Item C
Use -, +, or * as bullet markers.

Ordered

1. First
2. Second
   1. Sub-item
3. Third
Numbers don't need to be sequential — most parsers auto-number.

Links & Images

[Link text](https://example.com)→ inline link
[Link text](https://example.com "Title")→ link with title tooltip
[ref link][id] … [id]: https://url→ reference-style link
![Alt text](image.png)→ inline image
![Alt text][img-ref] … [img-ref]: url→ reference-style image
<https://example.com>→ auto-link

Code

Inline code — wrap with backticks

Use `console.log()` to debug.

Fenced code block — triple backticks + optional language

```javascript
const x = 42;
console.log(x);
```

Language hint enables syntax highlighting on most renderers.

Indented code block — 4 spaces or 1 tab

    function hello() {
      return "world";
    }

Less common; fenced blocks are preferred.

Tables GFM

| Name    | Role      | Active |
| ------- | :-------: | -----: |
| Alice   | Admin     | Yes    |
| Bob     | Viewer    | No     |

Alignment: :--- left · :---: center · ---: right

Blockquotes, Rules & Extras

> This is a blockquoteblockquote
> Nested >> inner quotenested blockquote
---horizontal rule (also *** or ___)
Line one Line twoline break — 2 trailing spaces
\*escaped\*escape special chars with \

GFM Extensions

- [x] Done task✅ checked task list item
- [ ] Todo task☐ unchecked task list item
~~deleted~~deleted
:emoji:😀 emoji shortcode (GitHub)
> [!NOTE]🔵 GitHub alert callout
> [!WARNING]🟡 GitHub warning callout

Try our Markdown to HTML Converter →

Paste Markdown and get clean HTML output instantly.