Note

Useful information that users should know, even when skimming content.

Tip

Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

1. LaTeX 公式:完美展示数学表达式

Markdown 允许嵌入 LaTeX 语法展示数学公式:

$$ \begin{aligned} d_{i, j} &\leftarrow d_{i, j} + 1 \\ d_{i, y + 1} &\leftarrow d_{i, y + 1} - 1 \\ d_{x + 1, j} &\leftarrow d_{x + 1, j} - 1 \\ d_{x + 1, y + 1} &\leftarrow d_{x + 1, y + 1} + 1 \end{aligned} $$

这是展示复杂数学表达的利器!

2. Mermaid 流程图:可视化流程

Mermaid 是强大的可视化工具,可以在 Markdown 中创建流程图、时序图等。

graph LR
  A[GraphCommand] --> B[update]
  A --> C[goto]
  A --> D[send]
  
  B --> B1[更新状态]
  C --> C1[流程控制]
  D --> D1[消息传递]
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
pie
  title Key elements in Product X
  "Calcium" : 42.96
  "Potassium" : 50.05
  "Magnesium" : 10.01
  "Iron" : 5
pie
  title 为什么总是宅在家里?
  "喜欢宅" : 45
  "天气太热" : 70
  "穷" : 500
  "没人约" : 95
感谢您的访问!转载请注明出处,谢谢!