All Cheat Sheets

Markdown Cheat Sheet

Markdown syntax reference — headings, formatting, links, images, tables, code blocks, and GitHub-flavored extras.

Headings

H1# Heading 1
H2## Heading 2
H3### Heading 3
H4#### Heading 4

Text Formatting

Bold**bold text**
Italic*italic text*
Strikethrough~~strikethrough~~
Inline code`inline code`
Blockquote> This is a quote
Horizontal rule---

Links & Images

Link[text](https://url.com)
Image![alt](https://url.com/img.png)
Reference link[text][ref] [ref]: https://url.com

Lists

Unordered- Item 1 - Item 2
Ordered1. First 2. Second
Nested- Item - Sub-item
Task list- [x] Done - [ ] Todo

Code 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

FootnoteText[^1] [^1]: Footnote content
Collapsed<details> <summary>Title</summary> Content </details>
Alert> [!NOTE] > This is a note
Mention@username

GitHub 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 diagrams
Inline mathThe area is $\pi r^2$.LaTeX via MathJax on GitHub
Block math$$ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} $$
Math code block```math E = mc^2 ```Alternative that avoids clashes with $ in text
GeoJSON / 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 request
Commit referencea5c3785ed8d6a35868bc169f07e40e889087fd2eFull or short SHAs autolink to the commit
Closing keywordFixes #123In a PR description, closes the issue on merge (also closes, resolves)
Emoji shortcode:rocket: :white_check_mark:
Autolink URLhttps://techloghub.com <https://techloghub.com>GFM autolinks bare URLs
Heading anchor link[Jump to install](#installation)Anchors are the heading text lowercased with spaces as hyphens
Keyboard keys<kbd>Ctrl</kbd> + <kbd>C</kbd>
Hidden comment<!-- not rendered -->
Line breakFirst line\ Second lineEnd a line with a backslash (or two trailing spaces)
Escape characters\*not italic\* \# not a headingBackslash-escape * _ # ` | [ ] and other syntax characters
Pipe inside a table| a \| b | c |Escape | inside table cells
Image with size<img src="logo.png" alt="Logo" width="120">Plain Markdown images cannot be resized; use HTML

Free 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.