语法模版
coding
本文为 202206 版本升级后的语法大全总结
文档
math
安装文档
https://theme-next.js.org/docs/third-party-services/math-equations.html
语法
行内 :
$\sum_{k=1}^N k^2$
剧中 :
$$\begin{equation} \label{eq1}
e=mc^2
\end{equation}$$
更详细的语法可以查询 mathJax
tag 插件
文档
https://theme-next.js.org/docs/tag-plugins/
语法
{% cq %}Elegant in code, simple in core{% endcq %}
{% cq %}Elegant in code, simple in core{% endcq %}
{% note warning %}
## Warning Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}
{% note warning %}
Warning Header
Welcome to Hexo!
{% endnote %}
mermaid文档
文档
https://theme-next.js.org/docs/tag-plugins/mermaid.html?highlight=mermaid
https://mermaid-js.github.io/mermaid/#/
代码块格式
两种包裹方式
{% mermaid type %}
{% endmermaid %}
```mermaid
type
```
语法
流程图 Flowchart
graph TD; A-->B; A-->C; B-->D; C-->D;
序列图
sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts <br/>prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!
甘特图
gantt dateFormat YYYY-MM-DD title Adding GANTT diagram to mermaid excludes weekdays 2014-01-10 section A section Completed task :done, des1, 2014-01-06,2014-01-08 Active task :active, des2, 2014-01-09, 3d Future task : des3, after des2, 5d Future task2 : des4, after des3, 5d
类图
classDiagram Class01 <|-- AveryLongClass : Cool Class03 *-- Class04 Class05 o-- Class06 Class07 .. Class08 Class09 --> C2 : Where am i? Class09 --* C3 Class09 --|> Class07 Class07 : equals() Class07 : Object[] elementData Class01 : size() Class01 : int chimp Class01 : int gorilla Class08 <--> C2: Cool label
Git 图
gitGraph commit commit branch develop commit commit commit checkout main commit commit
实体关系图
erDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ LINE-ITEM : contains CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
用户旅程图
journey title My working day section Go to work Make tea: 5: Me Go upstairs: 3: Me Do work: 1: Me, Cat section Go home Go downstairs: 5: Me Sit down: 5: Me
评论列表