1 min read · updated 18 Nov 2026
Markdown Syntax Cheat Sheet
Common Markdown syntax for headings, lists, links, tables, code, and formatting
Markdown is plain text with simple symbols that render as formatted content. The examples below show the syntax and what it produces.
Headings
| Syntax | What it produces |
|---|---|
# Heading 1 | Largest heading |
## Heading 2 | Second level |
### Heading 3 | Third level |
#### Heading 4 | Fourth level |
Text Formatting
| Syntax | What it produces |
|---|---|
**bold** | bold |
*italic* | italic |
***bold italic*** | bold italic |
`inline code` | inline code |
~~strikethrough~~ |
Lists
Unordered list (use -, *, or +):
- First item
- Second item
- Nested itemOrdered list:
1. First step
2. Second step
3. Third stepLinks and Images
| Syntax | What it produces |
|---|---|
[link text](url) | A clickable link |
[text](url "title") | Link with a hover title |
 | An image |
[text][ref] and [ref]: url | Reference-style link |
Code
Inline: wrap in single backticks: `code here`
Fenced code block (use three backticks, optionally with a language name):
```python
def hello():
print("Hello")
```Tables
| Column A | Column B | Column C |
|----------|----------|----------|
| Row 1 | Data | Data |
| Row 2 | Data | Data |Alignment in columns: :--- for left, :---: for centre, ---: for right.
Blockquotes
> This is a blockquote.
> It can span multiple lines.Nest blockquotes with >>.
Horizontal Rule
Three or more hyphens, asterisks, or underscores on a line:
---Escaping Characters
To show a Markdown symbol as literal text, put a backslash before it:
\*not italic\*
\# not a headingUseful Notes
- Two spaces at the end of a line create a line break without starting a new paragraph.
- An empty line between text blocks creates a new paragraph.
- Not all Markdown renderers support every feature above (tables and strikethrough are GitHub Flavored Markdown extensions).
More cheat sheets
Not sure your computer can run a model? Use the will-it-run checker.

