elefcode
← All cheat sheets

Languages

Markdown Cheat Sheet — Syntax Reference (with GFM)

Markdown syntax at a glance, including the GitHub Flavored Markdown (GFM) extensions used in READMEs and issues.

Put it into practice with the matching tool.

Preview Markdown

Advertisement

Headings & emphasis

# Heading 1Top-level heading (up to ###### for level 6)
**bold**Bold text
*italic*Italic text
***bold italic***Bold and italic
~~strikethrough~~Strikethrough (GFM)

Lists

- itemUnordered list item
1. itemOrdered list item
- nestedNested item (indent by two spaces)
- [ ] todoUnchecked task list item (GFM)
- [x] doneChecked task list item (GFM)

Links & images

[text](https://example.com)Inline link
[text](url "title")Link with hover title
![alt](image.png)Image
<https://example.com>Autolink a bare URL

Code

`inline code`Inline code span
```jsStart a fenced code block with syntax highlighting
```Close a fenced code block
four spacesIndented code block (legacy style)

Tables (GFM)

| A | B |Header row
| --- | --- |Divider row (required)
| :--- |Left-align the column
| :---: |Center the column
| ---: |Right-align the column

Other blocks

> quoteBlockquote
---Horizontal rule
line ending with two spacesForce a line break
\*escaped\*Escape a Markdown character with a backslash

More cheat sheets