Skip to content
AI Stack Nest
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

SyntaxWhat it produces
# Heading 1Largest heading
## Heading 2Second level
### Heading 3Third level
#### Heading 4Fourth level

Text Formatting

SyntaxWhat it produces
**bold**bold
*italic*italic
***bold italic***bold italic
`inline code`inline code
~~strikethrough~~strikethrough

Lists

Unordered list (use -, *, or +):

- First item
- Second item
  - Nested item

Ordered list:

1. First step
2. Second step
3. Third step
SyntaxWhat it produces
[link text](url)A clickable link
[text](url "title")Link with a hover title
![alt text](image-url)An image
[text][ref] and [ref]: urlReference-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 heading

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