Life@USTC

评论格式指南

支持的 Markdown、数学公式与安全的 MDX 功能。

Markdown表格数学公式排版扩展Markdown 扩展
01
Markdown

支持常见 Markdown 语法,包括列表、强调与代码块。

**Bold** *Italic* ~~Strikethrough~~

- List Item 1
  - Sub Item
- List Item 2

1. Ordered Item 1
2. Ordered Item 2

> Blockquote can be nested
>> Nested level 2
效果预览

Bold Italic Strikethrough

  • List Item 1
    • Sub Item
  • List Item 2
  1. Ordered Item 1
  2. Ordered Item 2

Blockquote can be nested

Nested level 2

02
表格

支持标准 GFM 表格语法。

| Option | Description |
| ------ | ----------- |
| data   | path to data files |
| engine | template engine |
| ext    | file extension |
效果预览
Option Description
data path to data files
engine template engine
ext file extension
03
数学公式

行内公式使用 $...$,块级公式使用 $$...$$。

Inline: $E = mc^2$

Block:
$$
\int_0^\infty e^{-x} dx = 1
$$
效果预览

Inline: E=mc2E = mc^2

Block:

0exdx=1\int_0^\infty e^{-x} dx = 1
04
排版扩展

支持 Emoji、上标、下标、插入文本、高亮以及提示框。

Emoji: :smile: :rocket: :tada:

Sup/Sub: H~2~O, 2^10^

Ins/Mark: ++Inserted text++, ==Marked text==

::::tip
This is a helpful tip!
::::

::::warning
Watch out for this.
::::

::::error
Something went wrong.
::::
效果预览

Emoji: 😄 🚀 🎉

Sup/Sub: H2O, 210

Ins/Mark: Inserted text, Marked text

This is a helpful tip!

Watch out for this.

Something went wrong.

05
Markdown 扩展

支持属性语法 '{'width=...'}' 与容器语法 :::center。

![Life@USTC icon](/images/icon.png){width=96 align=center}

::::center
**Centered content using Directives**
::::
效果预览

Life@USTC icon

Centered content using Directives