Markdown & GFM Syntax Cheat Sheet
The complete GitHub Flavored Markdown (GFM) reference: headings, formatting, tables with text alignment, code block languages, callouts, and collapsible details with 1-click copy.
Headings & Text Structure (5 commands)
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
Creates semantic HTML5
through heading elements.
**Bold Text** or __Bold Text__
Renders text in strong bold weight ().
*Italic Text* or _Italic Text_
Renders text in italicized emphasis ().
~~Strikethrough Text~~
GFM strikethrough styling ().
Subscript: H~2~O | Superscript: X^2^
Extended markdown syntax for mathematical subscript and superscript.
Lists & Task Checkboxes (3 commands)
- Unordered Item 1
- Unordered Item 2
- Nested Sub-item
Unordered bulleted list. Can also use * or + as bullet markers.
1. First step
2. Second step
3. Third step
Ordered numerical list (
- ).
- [x] Completed task
- [ ] Pending task item
GFM interactive task checklist with clickable checkboxes.
Links & Images (3 commands)
[Anchor Text](https://example.com "Optional Tooltip")
Standard hyperlink with clickable anchor text.

Embeds an image. Preceded by an exclamation mark (!).
[](https://example.com/video)
Clickable image link (image wrapped inside an anchor tag).
Code & Syntax Highlighting (3 commands)
`const app = express();`
Inline code snippet wrapped in single backticks (`).
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
```
Fenced multi-line code block with syntax highlighting identifier.
``Use `backticks` inside code block``
Wrap in double backticks to write literal backtick characters within inline code.
Tables & Alignment (1 commands)
| Feature | Status | Speed |
| :--- | :---: | ---: |
| Edge SSG | Active | 0ms |
| API Node | Ready | 12ms |
GFM markdown table: :--- is left align, :---: is center, ---: is right align.
Blockquotes & GitHub Alerts (3 commands)
> [!NOTE]
> Highlights useful information that users should know.
Modern GitHub Flavored Markdown NOTE callout banner.
> [!WARNING]
> Critical alert about potential breaking changes.
GitHub Flavored Markdown WARNING callout banner (rendered in yellow/amber).
> This is a standard blockquote citation.
>> Nested secondary quotation.
Standard blockquote tag (
) with optional multi-level nesting.
Collapsible Details & Footnotes (2 commands)
<details>
<summary>Click to view secret code</summary>
```bash
npm run build:prod
```
</details>
Collapsible toggle accordion natively supported in GitHub markdown and modern browsers.
Here is a statement needing citation.[^1]
[^1]: Reference: RFC 7231 Hypertext Transfer Protocol.
Markdown footnote reference and matching bibliography entry.