Markdown cheat sheet
The Markdown syntax you use every day, with the extras MacMD renders: task lists, tables, math and Mermaid diagrams. Copy any example into a .md file and press ⌘E in MacMD to see it typeset.
Headings
# Heading 1
## Heading 2
### Heading 3
Emphasis
*italic* or _italic_
**bold** or __bold__
~~strikethrough~~
Lists
- Bullet
- Another
- Nested
1. First
2. Second
Task list
- [x] Done
- [ ] To do
Links and images
[Link text](https://example.com)

Code
`inline code`
```swift
let greeting = "Hello"
```
Quote
> A quoted line
> and another
Table
| Name | Role |
|------|------|
| Ada | Math |
Horizontal rule
---
Math (KaTeX)
Inline $e^{i\pi} + 1 = 0$
$$\int_0^1 x^2\,dx = \tfrac{1}{3}$$
Mermaid diagram
```mermaid
flowchart LR
Write --> Read
```
Useful MacMD shortcuts
| Action | Shortcut |
|---|---|
| Edit / Read mode | ⌘E |
| Bold / Italic | ⌘B / ⌘I |
| Link | ⌘K |
| Inline code | ⇧⌘K |
| Heading 1 to 6 | ⌘1 to ⌘6 |
| Focus mode / Typewriter mode | F8 / F9 |
New to MacMD? See the Markdown editor for Mac overview.