Basic Markdown Syntax (Quick Reference)

93 words 1 min read

Feb 20, 2026

This post is a compact cheat sheet for writing Markdown efficiently.

Reference source: https://note.motues.top/docs/Markdown/use

Headings

Use # to ###### for heading levels 1 to 6.

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

Paragraphs and Line Breaks

Separate paragraphs with a blank line. Add two trailing spaces for a line break.

This is paragraph one.

This is paragraph two.  
This is a new line in the same paragraph.

Emphasis

**bold**
*italic*
***bold italic***
~~strikethrough~~

Blockquotes

> A blockquote
>> A nested blockquote

Code

Inline code:

Use `console.log` to print logs.

Code block:

```ts
const name = "Markdown";
console.log(name);

## Lists

### Unordered

```markdown
- Item one
- Item two
- Item three

Ordered

1. Item one
2. Item two
3. Item three

Task list

- [x] Done task
- [ ] Todo task
[Visit site](https://example.com)

![Image alt text](./assets/example.png)

Tables

| Name | Type | Notes |
| --- | --- | --- |
| Markdown | Markup | Lightweight and readable |

Alignment:

| Left | Center | Right |
| :--- | :---: | ---: |
| A | B | C |

Formulas (KaTeX)

Inline:

Pythagorean theorem: $a^2+b^2=c^2$

Block:

$$
\int_a^b f(x)\,dx
$$

Admonition

:::tip
This is a tip card.
:::

Horizontal Rule

---

If you’re writing in the admin editor, you can use the built-in Markdown quick insert menu to generate these snippets quickly.

Basic Markdown Syntax (Quick Reference)
https://shi-tou1234.github.io/-/en/blog/简单的markdown语法/
Author
shi-tou1234
Published on
Feb 20, 2026
License
CC BY-NC-SA 4.0