All Cheat Sheets
Markdown Cheat Sheet
Markdown syntax reference — headings, formatting, links, images, tables, code blocks, and GitHub-flavored extras.
Headings
H1
# Heading 1H2
## Heading 2H3
### Heading 3H4
#### Heading 4Text Formatting
Bold
**bold text**Italic
*italic text*Strikethrough
~~strikethrough~~Inline code
`inline code`Blockquote
> This is a quoteHorizontal rule
---Links & Images
Link
[text](https://url.com)Image
Reference link
[text][ref]
[ref]: https://url.comLists
Unordered
- Item 1
- Item 2Ordered
1. First
2. SecondNested
- Item
- Sub-itemTask list
- [x] Done
- [ ] TodoCode Blocks
Fenced block
```language
code here
```Diff block
```diff
+ added
- removed
```Tables
Basic table
| Col 1 | Col 2 |
|-------|-------|
| A | B |Alignment
| Left | Center | Right |
|:-----|:------:|------:|GitHub Extras
Footnote
Text[^1]
[^1]: Footnote contentCollapsed
<details>
<summary>Title</summary>
Content
</details>Alert
> [!NOTE]
> This is a noteMention
@usernameGitHub Alerts (All Types)
Tip
> [!TIP]
> Optional advice to do things better.Important
> [!IMPORTANT]
> Key information users need to know.Warning
> [!WARNING]
> Urgent info that needs immediate attention.Caution
> [!CAUTION]
> Advises about risks or negative outcomes.RulesFive types: NOTE, TIP, IMPORTANT, WARNING, CAUTION. The marker goes alone on the first line of a blockquote; supported on GitHub, not in all Markdown renderers
Diagrams, Math & Rich Blocks (GFM)
Mermaid diagram
```mermaid
graph LR
A[Client] --> B[API]
B --> C[(Database)]
```GitHub renders Mermaid flowcharts, sequence, class and Gantt diagramsInline math
The area is $\pi r^2$.LaTeX via MathJax on GitHubBlock math
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$Math code block
```math
E = mc^2
```Alternative that avoids clashes with $ in textGeoJSON / STL
```geojson
{ "type": "Point", "coordinates": [77.59, 12.97] }
```GitHub renders maps (geojson, topojson) and 3D models (stl)More GitHub Markdown
Issue / PR reference
#123
owner/repo#123Autolinks to the issue or pull requestCommit reference
a5c3785ed8d6a35868bc169f07e40e889087fd2eFull or short SHAs autolink to the commitClosing keyword
Fixes #123In a PR description, closes the issue on merge (also closes, resolves)Emoji shortcode
:rocket: :white_check_mark:Autolink URL
https://techloghub.com
<https://techloghub.com>GFM autolinks bare URLsHeading anchor link
[Jump to install](#installation)Anchors are the heading text lowercased with spaces as hyphensKeyboard keys
<kbd>Ctrl</kbd> + <kbd>C</kbd>Hidden comment
<!-- not rendered -->Line break
First line\
Second lineEnd a line with a backslash (or two trailing spaces)Escape characters
\*not italic\* \# not a headingBackslash-escape * _ # ` | [ ] and other syntax charactersPipe inside a table
| a \| b | c |Escape | inside table cellsImage with size
<img src="logo.png" alt="Logo" width="120">Plain Markdown images cannot be resized; use HTMLFree tools for this
Keep the references coming
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.