DevToolsForYou

Markdown Cheatsheet

A quick reference for Markdown syntax — headings, emphasis, lists, links, images, code, tables, blockquotes, and extended syntax.

Updated Apr 11, 2026

Sections

  1. Headings
  2. Emphasis & Inline Formatting
  3. Lists
  4. Links & Images
  5. Code
  6. Blockquotes & Rules
  7. Tables (GFM)
  8. Miscellaneous

Headings

MarkdownRenders As
# Heading 1<h1> — largest heading
## Heading 2<h2>
### Heading 3<h3>
#### Heading 4<h4>
##### Heading 5<h5>
###### Heading 6<h6> — smallest heading

Emphasis & Inline Formatting

MarkdownResult
*italic* or _italic_Italic text
**bold** or __bold__Bold text
***bold italic***Bold and italic
~~strikethrough~~Strikethrough (GFM)
`inline code`Inline code span
``contains `backtick` ``Inline code with a literal backtick inside

Lists

MarkdownDescription
- item - itemUnordered list (- or * or +)
1. item 2. itemOrdered list
1. item - subNested list — indent with 3 spaces (unordered) or align to text
- [x] done - [ ] todoTask list (GFM)

Code

MarkdownDescription
`code`Inline code
```\ncode\n```Fenced code block (triple backticks)
```js\ncode\n```Fenced block with language — enables syntax highlighting
indented code4-space indent — code block (avoid in favour of fenced)

Blockquotes & Rules

MarkdownDescription
> quoted textBlockquote
> line1 > line2Multi-line blockquote
> > nestedNested blockquote
--- or *** or ___Horizontal rule (thematic break)

Tables (GFM)

MarkdownDescription
| Col1 | Col2 | |------|------| | A | B |Basic table — header row, separator row (---), data rows
|:-----|Left-align column
|-----:|Right-align column
|:----:|Center-align column

Miscellaneous

MarkdownDescription
\*escaped\*Backslash escapes a special character — renders as *escaped*
<!-- comment -->HTML comments work in Markdown
Two spaces + EnterHard line break (inline <br>)
Blank lineNew paragraph
[^1] / [^1]: noteFootnote reference and definition (extended Markdown)