All cheatsheets

Cheatsheets

Markdown

Markdown syntax for text, headings, lists, links, code, and tables.

Visualize

Markdown → preview

Toggle a snippet and see the source render.

source

# Title
## Subtitle

preview

Title

Subtitle

# … ## … become heading levels — more hashes, smaller heading.

27 entries

Text7

**bold**

Bold text

*italic*

Italic text

~~strike~~

Strikethrough (GFM extension)

`code`

Inline code

> quote

Blockquote

---

Horizontal rule

footnote[^1]

Footnote reference

Headings3

# H1

Top-level heading

## H2

Second-level heading

### H3

Third-level heading

Lists5

- item

Unordered list item

1. item

Ordered list item

- nested

Nested list item (indent 2 spaces)

- [ ] todo

Unchecked task list item (GFM)

- [x] done

Checked task list item (GFM)

Links & images4

[text](https://url)

Inline link

![alt](image.png)

Inline image

[text][ref] [ref]: https://url

Reference-style link

<https://url>

Autolink — URL rendered as a clickable link

Code & tables3

```js const x = 1; ```

Fenced code block with syntax highlighting

| Col A | Col B | | ----- | ----- | | a | b |

Table with a header row (GFM)

indented

Indented (4-space) code block

Escaping & special characters2

\*literal asterisk\*

Backslash escape — treat the next character literally

&amp; &#169; &#x1F600;

HTML entities and numeric character references

Raw HTML & GFM extensions2

<details> <summary>Toggle</summary> Hidden content </details>

Raw HTML — rendered verbatim in most processors

~~strike~~ ==highlight== ~sub~ ^sup^

GFM / extended syntax — support varies by renderer

Hard line breaks & paragraphs1

line one line two

Hard line break — two trailing spaces before newline