236 字
1 分钟
Markdown cheatsheet for Astro

Github-flavored Markdown is used as syntax.
Math resolver: Katex

Heading#

# First-level heading
## Second-level heading
### Third-level heading
#### Fourth-level heading
##### Fifth-level heading
###### Sixth-level heading
TIP

Only first to third level heading will be shown in toc.
To get links for heading, just render post locally and get links from browser.

Text format#

Bold
Italicized
Mistaken
Subscript
Superscript
Underlined
Dash-Dash—

Centered


Quote#

Quote

Code#

This is some code

Terminal window
apt upgrade -y
apt autoremove --purge
TIP

To use 3 backticks in code, use 4 backticks to wrap the codeblock.
To use codeblock in a list, indent the codeblock with 8 spaces.
Language hints are in Languages | Shiki.

Blog

Custom redirect in post#

<a name="redirect-to-top"></a>

Redirect to top

Paragraph#

This is the first line.
This is the second line.

This is another paragraph.

Image#

Banner

List#

  1. This is the first item.
    • This is an item
      • This is an item
  2. This is the second item.

Task#

  • Finished
  • Not finished

Footnote#

This is a footnote1.

Alert#

NOTE

This is a note.

TIP

This is a tip.

IMPORTANT

This is a important message.

WARNING

This is a warning.

CAUTION

This is a caution

This is a custom title

This is another note.

Hidden comment#

This is some text.

Escape markdown format#

Add a backslash (\) before the markdown character. For example, *This is not markdown*.

Tables#

CAUTION

Not working properly, see Bug: table in post is not aligned per markdown setting.

Key 1Item 2Key 3Key 4
Value 1Value 2Value 3Value |4

Collapsed content#

This should be unfolded by default

This is some content

Math#

3x1+(1+x)2\sqrt{3x-1}+(1+x)^2

π=3.1415926535  8979323846  2643383279  5028841971  6939937510  5820974944  5923078164  0628620899  8628034825  3421170679  \begin{equation*} \pi =3.1415926535 \;8979323846\;2643383279\;5028841971\;6939937510\;5820974944 \;5923078164\;0628620899\;8628034825\;3421170679\;\ldots \end{equation*}
TIP

To escape math syntax, use \$ inside math block, use <span>$</span> outside math block (only for inline).

Github repo#

saicaca
/
fuwari
Waiting for api.github.com...
00K
0K
0K
Waiting...

Video#

Footnotes#

  1. This is the information.

Markdown cheatsheet for Astro
https://meaqua.work/posts/markdown-syntax/
作者
Meaqua
发布于
2025-04-26