Markdown syntax cheat sheet

Markdown is plain text with a few markers. This page covers the syntax this editor previews. Open the online markdown editor and paste any example to see it render.

Headings

# Heading 1
## Heading 2
### Heading 3

Emphasis

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

Lists

- Unordered item
- Nested under it

1. First
2. Second

- [x] Done
- [ ] Not done

Links and images

[Visible text](https://example.com)
![Alt text](https://example.com/image.png)

Code blocks

Fence with three backticks and an optional language for highlighting.

```js
console.log("hello")
```

Tables

| Name | Role |
|------|------|
| Ada  | Admin |

Quotes and rules

> A block quote

---

For GitHub-only extras (alerts, footnotes, mermaid), see GitHub Flavored Markdown. To turn a finished note into a file, use markdown to PDF.