ZeroCN

Usage

Install package

pnpm dlx shadcn@latest add https://zerocn.zeroopensource.org/r/mdx-cheatsheet.json

Install package (workspace)

pnpm --filter $WORKSPACE shadcn add https://zerocn.zeroopensource.org/r/mdx-cheatsheet.json

Source

mdx-cheatsheet.mdx
---
title: MDX Cheatsheet
description: |
    MDX syntax and usage reference
createdAt: 2026-07-16T00:54:00.000Z
updatedAt: 2026-07-16T00:54:00.000Z
tags:
    - JavaScript
    - Markdown
metadata:
    author: Zero
    role: Editor
    status: Active
---

# GFM Cheatsheet

### Autolink literals

www.example.com, https://example.com, and [email protected].

### Footnote

A note[^1]

[^1]: Big note.

### Strikethrough

~one~ or ~~two~~ tildes.

### Table

| a   | b   |   c |  d  |
| --- | :-- | --: | :-: |

### Tasklist

- [ ] to do
- [x] done

# MDX Cheatsheet

### a

[MDX](https://mdxjs.com 'title')

### blockquote

> A greater than…

### br

A backslash\
before a line break…<br />
or br tag

### code

```javascript
backtick.fences('for blocks')
```

### em

Some _asterisks_ for emphasis.

### hr

Three asterisks for a thematic break:

---

### img

`![Alt text](/logo.png 'title')`

### li

- asterisks for unordered items

1. decimals and a dot for ordered items

### ol

1. decimals and a dot for ordered

### p

Just some text…

### pre

```javascript
backtick.fences('for blocks')
```

### strong

Two **asterisks** for strong.

### ul

- asterisks for unordered

### h1-6

# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6

Demo

GFM Cheatsheet

www.example.com, https://example.com, and [email protected].

Footnote

A note1

Strikethrough

one or two tildes.

Table

abcd

Tasklist

  • to do
  • done

MDX Cheatsheet

a

MDX

blockquote

A greater than…

br

A backslash
before a line break…
or br tag

code

backtick.fences('for blocks')

em

Some asterisks for emphasis.

hr

Three asterisks for a thematic break:


img

![Alt text](/logo.png 'title')

li

  • asterisks for unordered items
  1. decimals and a dot for ordered items

ol

  1. decimals and a dot for ordered

p

Just some text…

pre

backtick.fences('for blocks')

strong

Two asterisks for strong.

ul

  • asterisks for unordered

h1-6

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Footnotes

  1. Big note. ↩

References

On this page