Markdown cheat sheet

A quick reference for GitHub Flavored Markdown, the flavor mdpage.app renders. Copy any snippet, then paste it into the viewer to see it live.

Headings

MarkdownRenders as
# Heading 1
Largest heading
## Heading 2
Second-level heading
### Heading 3
Third-level heading

Text formatting

MarkdownRenders as
**bold**
bold
*italic*
italic
~~strikethrough~~
strikethrough
`inline code`
inline code

Lists

MarkdownRenders as
- Item
- Item
  • Item
  • Item
1. First
2. Second
  1. First
  2. Second
- [x] Done
- [ ] Todo
☑ Done
☐ Todo

Links and images

MarkdownRenders as
[label](https://example.com)
label
![alt text](image.png)
An embedded image

Code blocks

MarkdownRenders as
```js
const x = 1;
```
A syntax-highlighted code block

Blockquotes

MarkdownRenders as
> Quoted text
Quoted text

Tables

Pipes separate columns; the second row sets alignment.

MarkdownRenders as
| A | B |
| - | - |
| 1 | 2 |
A two-column table with a header row and one row of data.

Horizontal rule

MarkdownRenders as
---
A horizontal divider line