Markdown Cheatsheet

Complete syntax reference with rendered preview. Click any section to copy the markdown source.

Headings
Use # symbols (1–6) for headings.
Markdown
# H1 Heading
## H2 Heading
### H3 Heading
#### H4 Heading
##### H5 Heading
###### H6 Heading
Preview

H1 Heading

Emphasis
Bold, italic, combined, and strikethrough.
Markdown
*italic text*
**bold text**
***bold and italic***
~~strikethrough~~
Preview

italic text bold text bold and italic strikethrough

Lists
Unordered, ordered, nested, and task lists.
Markdown
- Unordered item
- Another item
  - Nested item

1. First ordered item
2. Second item
3. Third item

- [x] Completed task
- [ ] Pending task
Preview
  • Unordered item
  • Another item
    • Nested item
  1. First ordered item
  2. Second item
  3. Third item
  • Completed task
  • Pending task
Links and Images
Inline links and image embeds.
Markdown
[Link text](https://lorm.pro)
[Link with title](https://lorm.pro "lorm.pro")
![Alt text](https://via.placeholder.com/80x30)
Code
Inline code and fenced code blocks.
Markdown
Inline: `const x = 42`

```javascript
function greet(name) {
  return `Hello, ${name}!`
}
```

```bash
curl https://api.lorm.pro/lorem
```
Preview

Inline: const x = 42

function greet(name) {
  return `Hello, ${name}!`
}
curl https://api.lorm.pro/lorem
Blockquotes
Prefix lines with > to create blockquotes.
Markdown
> This is a blockquote.
> It can span multiple lines.
>
> And multiple paragraphs.
Preview
This is a blockquote. It can span multiple lines. And multiple paragraphs.
Tables
Use pipes and hyphens to create tables.
Markdown
| Column A | Column B | Column C |
|----------|----------|----------|
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |
Preview
Column AColumn BColumn C
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6
Horizontal Rule
Three or more hyphens on a line.
Markdown
Above the rule

---

Below the rule
Preview

Above the rule


Below the rule

Footnotes
Reference footnotes with [^label] syntax.
Markdown
Here is a sentence with a footnote.[^1]

[^1]: This is the footnote text.
Preview

Here is a sentence with a footnote.[1]

[1]: This is the footnote text.

HTML in Markdown
Most Markdown parsers allow raw HTML inline.
Markdown
<details>
  <summary>Click to expand</summary>
  Hidden content goes here.
</details>

<mark>Highlighted text</mark>

<kbd>Ctrl</kbd> + <kbd>C</kbd>
Preview

<details> <summary>Click to expand</summary> Hidden content goes here. </details>

<mark>Highlighted text</mark>

<kbd>Ctrl</kbd> + <kbd>C</kbd>

Live Editor
Preview

My Document

Write your markdown here and see the live preview below.

Features

const hello = () => 'world'
Blockquotes are great for callouts.
NameValue
Alpha1
Beta2

  1. Item one
  2. Item two