【Markdown】csdn-markdown语法

白色玫瑰 程序猿

时间: 2023-07-13 阅读: 1 字数:65076

{}
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入\n欢迎使用Ma...

这里写自定义目录标题

<a href="#Markdown_2">欢迎使用Markdown编辑器</a>

<a href="#_6">新的改变</a>    <a href="#_20">功能快捷键</a>    <a href="#_35">合理的创建标题,有助于目录的生成</a>    <a href="#_43">如何改变文本的样式</a>    <a href="#_84">插入链接与图片</a>    <a href="#_117">如何插入一段漂亮的代码片</a>    <a href="#_155">生成一个适合你的列表</a>    <a href="#_180">创建一个表格</a>    
 
  <a href="#_197">设定内容居中、居左、居右</a>      <a href="#SmartyPants_213">SmartyPants</a>         <a href="#_229">创建一个自定义列表</a>    <a href="#_247">如何创建一个注脚</a>    <a href="#_259">注释也是必不可少的</a>    <a href="#KaTeX_268">KaTeX数学公式</a>    <a href="#_289">甘特图</a>    <a href="#UML__318">UML 图表</a>    <a href="#Mermaid_347">流程图(Mermaid)</a>    <a href="#FLowchartjs_371">流程图(FLowchart.js)</a>    <a href="#_401">导出与导入</a>    
 
  <a href="#_403">导出</a>      <a href="#_406">导入</a>            

欢迎使用Markdown编辑器

你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。

新的改变

我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:

全新的界面设计 ,将会带来全新的写作体验; 在创作中心设置你喜爱的代码高亮样式,Markdown 将代码片显示选择的高亮样式 进行展示; 增加了 图片拖拽 功能,你可以将本地的图片直接拖拽到编辑区域直接展示; 全新的 KaTeX数学公式 语法; 增加了支持甘特图的mermaid语法<sup class="footnote-ref"><a href="#fn1" id="fnref1">1</a></sup> 功能; 增加了 多屏幕编辑 Markdown文章功能; 增加了 焦点写作模式、预览模式、简洁写作模式、左右区域同步滚轮设置 等功能,功能按钮位于编辑区域与预览区域中间; 增加了 检查列表 功能。

功能快捷键

撤销:<kbd>Ctrl/Command</kbd> + <kbd>Z</kbd> 重做:<kbd>Ctrl/Command</kbd> + <kbd>Y</kbd> 加粗:<kbd>Ctrl/Command</kbd> + <kbd>B</kbd> 斜体:<kbd>Ctrl/Command</kbd> + <kbd>I</kbd> 标题:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>H</kbd> 无序列表:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>U</kbd> 有序列表:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>O</kbd> 检查列表:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd> 插入代码:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>K</kbd> 插入链接:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd> 插入图片:<kbd>Ctrl/Command</kbd> + <kbd>Shift</kbd> + <kbd>G</kbd>

合理的创建标题,有助于目录的生成

直接输入1次<kbd>#</kbd>,并按下<kbd>space</kbd>后,将生成1级标题。 输入2次<kbd>#</kbd>,并按下<kbd>space</kbd>后,将生成2级标题。 以此类推,我们支持6级标题。有助于使用TOC语法后生成一个完美的目录。

如何改变文本的样式

*强调文本* _强调文本_

强调文本 强调文本

**加粗文本** __加粗文本__

加粗文本 加粗文本

==标记文本==

<mark>标记文本</mark>

~~删除文本~~

<s>删除文本</s>

> 引用文本
> > 引用文本

引用文本

引用文本

H~2~O is是液体。

H<sub>2</sub>O is是液体。

2^10^ 运算结果是 1024.

2<sup>10</sup> 运算结果是 1024.

插入链接与图片

链接: [link](https://mp.csdn.net).

链接: <a href="https://mp.csdn.net">link</a>.

图片:

![Alt](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw?x-oss-process=image/format,png)

Alt

带尺寸的图片:

![Alt](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw?x-oss-process=image/format,png# =30x30)

Alt

居中的图片:

![Alt](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw?x-oss-process=image/format,png#pic_center)

Alt

居中并且带尺寸的图片:

![Alt](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9hdmF0YXIuY3Nkbi5uZXQvNy83L0IvMV9yYWxmX2h4MTYzY29tLmpwZw?x-oss-process=image/format,png#pic_center =30x30)

Alt

当然,我们为了让用户更加便捷,我们增加了图片拖拽功能。

如何插入一段漂亮的代码片

去<a href="https://mp.csdn.net/configure">博客设置</a>页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片.

Java代码段

@Test
public void testMatchReplaceAll() {
String s = “the quick brown fox jumps over the lazy dog.”;
String r = s.replaceAll("\s([a-z]{4})\s", " <b>$1</b> ");
System.out.println®;
}

显示效果:

   @Test
   public void testMatchReplaceAll() {
      String s = "the quick brown fox jumps over the lazy dog.";
      String r = s.replaceAll("\\s([a-z]{4})\\s", " <b>$1</b> ");
      System.out.println(r);
   }

JavaScript代码段

// An highlighted block
var foo = ‘bar’;

执行结果

// An highlighted block
var foo = 'bar';

生成一个适合你的列表

无序列表

- 项目
  - 项目
   - 项目

项目

项目

 项目         

有序列表

1. 项目1
2. 项目2
3. 项目3

项目1 项目2 项目3

<input type="checkbox" class="task-list-item-checkbox" disabled> 计划任务 <input type="checkbox" class="task-list-item-checkbox" checked="true" disabled> 完成任务

创建一个表格

一个简单的表格是这么创建的:

|项目    | Value|
|-------- | -----|
|电脑  | $1600|
|手机  | $12|
|导管  | $1|

显示效果:

<table> <thead> <tr> <th>项目</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>电脑</td> <td>$1600</td> </tr> <tr> <td>手机</td> <td>$12</td> </tr> <tr> <td>导管</td> <td>$1</td> </tr> </tbody> </table>nn### 设定内容居中、居左、居右

使用:---------:居中 使用:----------居左 使用----------:居右

| 第一列      | 第二列       | 第三列      |
|:-----------:| -------------:|:-------------|
| 第一列文本居中 | 第二列文本居右  | 第三列文本居左 | 

<table> <thead> <tr> <th align="center">第一列</th> <th align="right">第二列</th> <th align="left">第三列</th> </tr> </thead> <tbody> <tr> <td align="center">第一列文本居中</td> <td align="right">第二列文本居右</td> <td align="left">第三列文本居左</td> </tr> </tbody> </table>nn### SmartyPants

SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:

|   TYPE   |ASCII                    |HTML                   
|----------------|-------------------------------|-----------------------------|
|Single backticks|`'Isn't this fun?'`         |'Isn't this fun?'         |
|Quotes        |`"Isn't this fun?"`         |"Isn't this fun?"         |
|Dashes        |`-- is en-dash, --- is em-dash`|-- is en-dash, --- is em-dash|

<table> <thead> <tr> <th>TYPE</th> <th>ASCII</th> <th><abbr title="超文本标记语言">HTML</abbr></th> </tr> </thead> <tbody> <tr> <td>Single backticks</td> <td>'Isn't this fun?'</td> <td>‘Isn’t this fun?’</td> </tr> <tr> <td>Quotes</td> <td>"Isn't this fun?"</td> <td>“Isn’t this fun?”</td> </tr> <tr> <td>Dashes</td> <td>-- is en-dash, --- is em-dash</td> <td>– is en-dash, — is em-dash</td> </tr> </tbody> </table>nn## 创建一个自定义列表

Markdown
:  Text-to-HTML conversion tool

Authors
:  John
:  Luke

<dl> Markdown <dd> Text-to- <abbr title="超文本标记语言">HTML</abbr> conversion tool </dd> Authors <dd> John </dd> <dd> Luke </dd> </dl>

如何创建一个注脚

一个具有注脚的文本。[^2]

一个具有注脚的文本。<sup class="footnote-ref"><a href="#fn2" id="fnref2">2</a></sup>

[^2]: 注脚的解释

注释也是必不可少的

Markdown将文本转换为 HTML。
*[HTML]:   超文本标记语言

Markdown将文本转换为 <abbr title="超文本标记语言">HTML</abbr>。

KaTeX数学公式

您可以使用渲染LaTeX数学表达式 <a href="https://khan.github.io/KaTeX/">KaTeX</a>:

Gamma公式展示 $\Gamma(n) = (n-1)!\quad\forall
n\in\mathbb N$ 是通过欧拉积分

$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
$$

Gamma公式展示 Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n−1)!∀n∈N 是通过欧拉积分

Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t   . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt,. Γ(z)=∫0∞​tz−1e−tdt.

你可以找到更多关于的信息 LaTeX 数学表达式<a href="http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference">here</a>.

甘特图

···mermaid
gantt
      dateFormat  YYYY-MM-DD
      title Adding GANTT diagram functionality to mermaid
      section 现有任务
      已完成            :done,   des1, 2014-01-06,2014-01-08
      进行中            :active,  des2, 2014-01-09, 3d
      计划一            :       des3, after des2, 5d
      计划二            :       des4, after des3, 5d
···

效果图:

<svg xmlns="http://www.w3.org/2000/svg" id="mermaid-svg-q4wOOoyfAWlgQy4b" height="100%" viewbox="0 0 500 196"> <g></g> <g class="grid" transform="translate(75, 146)"> <g class="tick" transform="translate(0,0)" style="opacity: 1;"> </line> <text dy="1em" y="3" x="0" fill="#000" stroke="none" font-size="10" style="text-anchor: middle;"> Mon 06 </text> </g> <g class="tick" transform="translate(153,0)" style="opacity: 1;"> </line> <text dy="1em" y="3" x="0" fill="#000" stroke="none" font-size="10" style="text-anchor: middle;"> Mon 13 </text> </g> <g class="tick" transform="translate(306,0)" style="opacity: 1;"> </line> <text dy="1em" y="3" x="0" fill="#000" stroke="none" font-size="10" style="text-anchor: middle;"> Mon 20 </text> </g>

</path> </g> <g> <rect x="0" y="48" width="462.5" height="24" class="section section0"></rect> <rect x="0" y="72" width="462.5" height="24" class="section section0"></rect> <rect x="0" y="96" width="462.5" height="24" class="section section0"></rect> <rect x="0" y="120" width="462.5" height="24" class="section section0"></rect> </g> <g> <rect rx="3" ry="3" x="75" y="50" width="44" height="20" class="task done0"></rect> <rect rx="3" ry="3" x="141" y="74" width="65" height="20" class="task active0"></rect> <rect rx="3" ry="3" x="206" y="98" width="110" height="20" class="task task0"></rect> <rect rx="3" ry="3" x="316" y="122" width="109" height="20" class="task task0"></rect> <text font-size="11" x="97" y="63.5" text-height="20" class="taskText taskText0 doneText0"> 已完成 </text> <text font-size="11" x="173.5" y="87.5" text-height="20" class="taskText taskText0 activeText0"> 进行中 </text> <text font-size="11" x="261" y="111.5" text-height="20" class="taskText taskText0 "> 计划一 </text> <text font-size="11" x="370.5" y="135.5" text-height="20" class="taskText taskText0 "> 计划二 </text> </g> <g> <text x="10" y="98" class="sectionTitle sectionTitle0"> 现有任务 </text> </g> <g class="today"> </line> </g> <text x="250" y="25" class="titleText"> Adding GANTT diagram functionality to mermaid </text> </svg>

关于 甘特图 语法,参考 <a href="https://mermaidjs.github.io/">这儿</a>,

UML 图表

可以使用UML图表进行渲染。 <a href="https://mermaidjs.github.io/">Mermaid</a>. 例如下面产生的一个序列图::

···mermaid
sequenceDiagram
张三 ->> 李四: 你好!李四, 最近怎么样?
李四-->>王五: 你最近怎么样,王五?
李四--x 张三: 我很好,谢谢!
李四-x 王五: 我很好,谢谢!
Note right of 王五: 李四想了很长时间, 文字太长了<br/>不适合放在一行.

李四-->>张三: 打量着王五...
张三->>王五: 很好... 王五, 你怎么样?
···

效果图:

<svg id="mermaid-svg-8ie0cAFoYAUfUhkc" width="100%" xmlns="http://www.w3.org/2000/svg" height="100%" style="max-width:871px;" viewbox="-50 -10 871 511"> <style>#mermaid-svg-8ie0cAFoYAUfUhkc .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .label text{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .node rect,#mermaid-svg-8ie0cAFoYAUfUhkc .node circle,#mermaid-svg-8ie0cAFoYAUfUhkc .node ellipse,#mermaid-svg-8ie0cAFoYAUfUhkc .node polygon,#mermaid-svg-8ie0cAFoYAUfUhkc .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-8ie0cAFoYAUfUhkc .node .label{text-align:center;fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .node.clickable{cursor:pointer}#mermaid-svg-8ie0cAFoYAUfUhkc .arrowheadPath{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-8ie0cAFoYAUfUhkc .flowchart-link{stroke:#333;fill:none}#mermaid-svg-8ie0cAFoYAUfUhkc .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-8ie0cAFoYAUfUhkc .edgeLabel rect{opacity:0.9}#mermaid-svg-8ie0cAFoYAUfUhkc .edgeLabel span{color:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-8ie0cAFoYAUfUhkc .cluster text{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-8ie0cAFoYAUfUhkc .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-8ie0cAFoYAUfUhkc text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-8ie0cAFoYAUfUhkc .actor-line{stroke:grey}#mermaid-svg-8ie0cAFoYAUfUhkc .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-8ie0cAFoYAUfUhkc #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .sequenceNumber{fill:#fff}#mermaid-svg-8ie0cAFoYAUfUhkc #sequencenumber{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc #crosshead path{fill:#333;stroke:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .messageText{fill:#333;stroke:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-8ie0cAFoYAUfUhkc .labelText,#mermaid-svg-8ie0cAFoYAUfUhkc .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-8ie0cAFoYAUfUhkc .loopText,#mermaid-svg-8ie0cAFoYAUfUhkc .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-8ie0cAFoYAUfUhkc .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-8ie0cAFoYAUfUhkc .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-8ie0cAFoYAUfUhkc .noteText,#mermaid-svg-8ie0cAFoYAUfUhkc .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-8ie0cAFoYAUfUhkc .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-8ie0cAFoYAUfUhkc .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-8ie0cAFoYAUfUhkc .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-8ie0cAFoYAUfUhkc .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .section{stroke:none;opacity:0.2}#mermaid-svg-8ie0cAFoYAUfUhkc .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-8ie0cAFoYAUfUhkc .section2{fill:#fff400}#mermaid-svg-8ie0cAFoYAUfUhkc .section1,#mermaid-svg-8ie0cAFoYAUfUhkc .section3{fill:#fff;opacity:0.2}#mermaid-svg-8ie0cAFoYAUfUhkc .sectionTitle0{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .sectionTitle1{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .sectionTitle2{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .sectionTitle3{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-8ie0cAFoYAUfUhkc .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .grid path{stroke-width:0}#mermaid-svg-8ie0cAFoYAUfUhkc .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-8ie0cAFoYAUfUhkc .task{stroke-width:2}#mermaid-svg-8ie0cAFoYAUfUhkc .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .taskText:not([font-size]){font-size:11px}#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-8ie0cAFoYAUfUhkc .task.clickable{cursor:pointer}#mermaid-svg-8ie0cAFoYAUfUhkc .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-8ie0cAFoYAUfUhkc .taskText0,#mermaid-svg-8ie0cAFoYAUfUhkc .taskText1,#mermaid-svg-8ie0cAFoYAUfUhkc .taskText2,#mermaid-svg-8ie0cAFoYAUfUhkc .taskText3{fill:#fff}#mermaid-svg-8ie0cAFoYAUfUhkc .task0,#mermaid-svg-8ie0cAFoYAUfUhkc .task1,#mermaid-svg-8ie0cAFoYAUfUhkc .task2,#mermaid-svg-8ie0cAFoYAUfUhkc .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutside0,#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutside2{fill:#000}#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutside1,#mermaid-svg-8ie0cAFoYAUfUhkc .taskTextOutside3{fill:#000}#mermaid-svg-8ie0cAFoYAUfUhkc .active0,#mermaid-svg-8ie0cAFoYAUfUhkc .active1,#mermaid-svg-8ie0cAFoYAUfUhkc .active2,#mermaid-svg-8ie0cAFoYAUfUhkc .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-8ie0cAFoYAUfUhkc .activeText0,#mermaid-svg-8ie0cAFoYAUfUhkc .activeText1,#mermaid-svg-8ie0cAFoYAUfUhkc .activeText2,#mermaid-svg-8ie0cAFoYAUfUhkc .activeText3{fill:#000 !important}#mermaid-svg-8ie0cAFoYAUfUhkc .done0,#mermaid-svg-8ie0cAFoYAUfUhkc .done1,#mermaid-svg-8ie0cAFoYAUfUhkc .done2,#mermaid-svg-8ie0cAFoYAUfUhkc .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-8ie0cAFoYAUfUhkc .doneText0,#mermaid-svg-8ie0cAFoYAUfUhkc .doneText1,#mermaid-svg-8ie0cAFoYAUfUhkc .doneText2,#mermaid-svg-8ie0cAFoYAUfUhkc .doneText3{fill:#000 !important}#mermaid-svg-8ie0cAFoYAUfUhkc .crit0,#mermaid-svg-8ie0cAFoYAUfUhkc .crit1,#mermaid-svg-8ie0cAFoYAUfUhkc .crit2,#mermaid-svg-8ie0cAFoYAUfUhkc .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-8ie0cAFoYAUfUhkc .activeCrit0,#mermaid-svg-8ie0cAFoYAUfUhkc .activeCrit1,#mermaid-svg-8ie0cAFoYAUfUhkc .activeCrit2,#mermaid-svg-8ie0cAFoYAUfUhkc .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-8ie0cAFoYAUfUhkc .doneCrit0,#mermaid-svg-8ie0cAFoYAUfUhkc .doneCrit1,#mermaid-svg-8ie0cAFoYAUfUhkc .doneCrit2,#mermaid-svg-8ie0cAFoYAUfUhkc .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-8ie0cAFoYAUfUhkc .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-8ie0cAFoYAUfUhkc .milestoneText{font-style:italic}#mermaid-svg-8ie0cAFoYAUfUhkc .doneCritText0,#mermaid-svg-8ie0cAFoYAUfUhkc .doneCritText1,#mermaid-svg-8ie0cAFoYAUfUhkc .doneCritText2,#mermaid-svg-8ie0cAFoYAUfUhkc .doneCritText3{fill:#000 !important}#mermaid-svg-8ie0cAFoYAUfUhkc .activeCritText0,#mermaid-svg-8ie0cAFoYAUfUhkc .activeCritText1,#mermaid-svg-8ie0cAFoYAUfUhkc .activeCritText2,#mermaid-svg-8ie0cAFoYAUfUhkc .activeCritText3{fill:#000 !important}#mermaid-svg-8ie0cAFoYAUfUhkc .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-8ie0cAFoYAUfUhkc g.classGroup text .title{font-weight:bolder}#mermaid-svg-8ie0cAFoYAUfUhkc g.clickable{cursor:pointer}#mermaid-svg-8ie0cAFoYAUfUhkc g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-8ie0cAFoYAUfUhkc g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-8ie0cAFoYAUfUhkc .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-8ie0cAFoYAUfUhkc .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-8ie0cAFoYAUfUhkc .dashed-line{stroke-dasharray:3}#mermaid-svg-8ie0cAFoYAUfUhkc #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc .commit-id,#mermaid-svg-8ie0cAFoYAUfUhkc .commit-msg,#mermaid-svg-8ie0cAFoYAUfUhkc .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-8ie0cAFoYAUfUhkc g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-8ie0cAFoYAUfUhkc g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-8ie0cAFoYAUfUhkc g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-8ie0cAFoYAUfUhkc .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-8ie0cAFoYAUfUhkc .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-8ie0cAFoYAUfUhkc .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-8ie0cAFoYAUfUhkc .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-8ie0cAFoYAUfUhkc .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-8ie0cAFoYAUfUhkc .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-8ie0cAFoYAUfUhkc .edgeLabel text{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-8ie0cAFoYAUfUhkc .node circle.state-start{fill:black;stroke:black}#mermaid-svg-8ie0cAFoYAUfUhkc .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-8ie0cAFoYAUfUhkc #statediagram-barbEnd{fill:#9370db}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-state .divider{stroke:#9370db}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-8ie0cAFoYAUfUhkc .note-edge{stroke-dasharray:5}#mermaid-svg-8ie0cAFoYAUfUhkc .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-8ie0cAFoYAUfUhkc .error-icon{fill:#522}#mermaid-svg-8ie0cAFoYAUfUhkc .error-text{fill:#522;stroke:#522}#mermaid-svg-8ie0cAFoYAUfUhkc .edge-thickness-normal{stroke-width:2px}#mermaid-svg-8ie0cAFoYAUfUhkc .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-8ie0cAFoYAUfUhkc .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-8ie0cAFoYAUfUhkc .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-8ie0cAFoYAUfUhkc .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-8ie0cAFoYAUfUhkc .marker{fill:#333}#mermaid-svg-8ie0cAFoYAUfUhkc .marker.cross{stroke:#333}

:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}</style> <style>#mermaid-svg-8ie0cAFoYAUfUhkc { color: rgba(0, 0, 0, 0.75); font: ; }</style> <g></g> <g> </line> <rect x="0" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect> <text x="75" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px; font-weight: 400; font-family: Open-Sans, sans-serif;"> <tspan x="75" dy="0"> 张三 </tspan> </text> </g> <g> </line> <rect x="248" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect> <text x="323" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px; font-weight: 400; font-family: Open-Sans, sans-serif;"> <tspan x="323" dy="0"> 李四 </tspan> </text> </g> <g> </line> <rect x="479" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect> <text x="554" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px; font-weight: 400; font-family: Open-Sans, sans-serif;"> <tspan x="554" dy="0"> 王五 </tspan> </text> </g> <defs> <marker id="arrowhead" refx="5" refy="2" markerwidth="6" markerheight="4" orient="auto">

</path> </marker> </defs> <defs> <marker id="crosshead" markerwidth="15" markerheight="8" orient="auto" refx="16" refy="4">

</path>

</path> </marker> </defs> <defs> <marker id="sequencenumber" refx="15" refy="15" markerwidth="60" markerheight="40" orient="auto"> <circle cx="15" cy="15" r="6"></circle> </marker> </defs> <text x="199" y="80" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 16px; font-weight: 400;"> 你好!李四, 最近怎么样? </text> </line> <text x="439" y="128" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 16px; font-weight: 400;"> 你最近怎么样,王五? </text> </line> <text x="199" y="176" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 16px; font-weight: 400;"> 我很好,谢谢! </text> </line> <text x="439" y="224" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 16px; font-weight: 400;"> 我很好,谢谢! </text> </line> <g> <rect x="579" y="267" fill="#EDF2AE" stroke="#666" width="192" height="52" rx="0" ry="0" class="note"></rect> <text x="675" y="272" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 14px; font-weight: 400;"> <tspan x="675"> 李四想了很长时间, 文字太长了 </tspan> </text> <text x="675" y="288" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 14px; font-weight: 400;"> <tspan x="675"> 不适合放在一行. </tspan> </text> </g> <text x="199" y="334" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 16px; font-weight: 400;"> 打量着王五... </text> </line> <text x="315" y="382" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-family: "trebuchet ms", verdana, arial; font-size: 16px; font-weight: 400;"> 很好... 王五, 你怎么样? </text> </line> <g> <rect x="0" y="435" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect> <text x="75" y="467.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px; font-weight: 400; font-family: Open-Sans, sans-serif;"> <tspan x="75" dy="0"> 张三 </tspan> </text> </g> <g> <rect x="248" y="435" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect> <text x="323" y="467.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px; font-weight: 400; font-family: Open-Sans, sans-serif;"> <tspan x="323" dy="0"> 李四 </tspan> </text> </g> <g> <rect x="479" y="435" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect> <text x="554" y="467.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px; font-weight: 400; font-family: Open-Sans, sans-serif;"> <tspan x="554" dy="0"> 王五 </tspan> </text> </g> </svg>

流程图(Mermaid)

···mermaid
graph LR
A[长方形] -- 链接 --> B((圆))
A --> C(圆角长方形)
B --> D{菱形}
C --> D
···

效果图

<svg id="mermaid-svg-yj5GWHCSjewQxa2E" width="404.20001220703125" xmlns="http://www.w3.org/2000/svg" height="158" viewbox="0 0 404.20001220703125 158"> <style>#mermaid-svg-yj5GWHCSjewQxa2E .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-yj5GWHCSjewQxa2E .label text{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .node rect,#mermaid-svg-yj5GWHCSjewQxa2E .node circle,#mermaid-svg-yj5GWHCSjewQxa2E .node ellipse,#mermaid-svg-yj5GWHCSjewQxa2E .node polygon,#mermaid-svg-yj5GWHCSjewQxa2E .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-yj5GWHCSjewQxa2E .node .label{text-align:center;fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .node.clickable{cursor:pointer}#mermaid-svg-yj5GWHCSjewQxa2E .arrowheadPath{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-yj5GWHCSjewQxa2E .flowchart-link{stroke:#333;fill:none}#mermaid-svg-yj5GWHCSjewQxa2E .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-yj5GWHCSjewQxa2E .edgeLabel rect{opacity:0.9}#mermaid-svg-yj5GWHCSjewQxa2E .edgeLabel span{color:#333}#mermaid-svg-yj5GWHCSjewQxa2E .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-yj5GWHCSjewQxa2E .cluster text{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-yj5GWHCSjewQxa2E .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-yj5GWHCSjewQxa2E text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-yj5GWHCSjewQxa2E .actor-line{stroke:grey}#mermaid-svg-yj5GWHCSjewQxa2E .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-yj5GWHCSjewQxa2E .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-yj5GWHCSjewQxa2E #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-yj5GWHCSjewQxa2E .sequenceNumber{fill:#fff}#mermaid-svg-yj5GWHCSjewQxa2E #sequencenumber{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E #crosshead path{fill:#333;stroke:#333}#mermaid-svg-yj5GWHCSjewQxa2E .messageText{fill:#333;stroke:#333}#mermaid-svg-yj5GWHCSjewQxa2E .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-yj5GWHCSjewQxa2E .labelText,#mermaid-svg-yj5GWHCSjewQxa2E .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-yj5GWHCSjewQxa2E .loopText,#mermaid-svg-yj5GWHCSjewQxa2E .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-yj5GWHCSjewQxa2E .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-yj5GWHCSjewQxa2E .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-yj5GWHCSjewQxa2E .noteText,#mermaid-svg-yj5GWHCSjewQxa2E .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-yj5GWHCSjewQxa2E .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-yj5GWHCSjewQxa2E .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-yj5GWHCSjewQxa2E .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-yj5GWHCSjewQxa2E .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .section{stroke:none;opacity:0.2}#mermaid-svg-yj5GWHCSjewQxa2E .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-yj5GWHCSjewQxa2E .section2{fill:#fff400}#mermaid-svg-yj5GWHCSjewQxa2E .section1,#mermaid-svg-yj5GWHCSjewQxa2E .section3{fill:#fff;opacity:0.2}#mermaid-svg-yj5GWHCSjewQxa2E .sectionTitle0{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .sectionTitle1{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .sectionTitle2{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .sectionTitle3{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-yj5GWHCSjewQxa2E .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .grid path{stroke-width:0}#mermaid-svg-yj5GWHCSjewQxa2E .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-yj5GWHCSjewQxa2E .task{stroke-width:2}#mermaid-svg-yj5GWHCSjewQxa2E .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .taskText:not([font-size]){font-size:11px}#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-yj5GWHCSjewQxa2E .task.clickable{cursor:pointer}#mermaid-svg-yj5GWHCSjewQxa2E .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-yj5GWHCSjewQxa2E .taskText0,#mermaid-svg-yj5GWHCSjewQxa2E .taskText1,#mermaid-svg-yj5GWHCSjewQxa2E .taskText2,#mermaid-svg-yj5GWHCSjewQxa2E .taskText3{fill:#fff}#mermaid-svg-yj5GWHCSjewQxa2E .task0,#mermaid-svg-yj5GWHCSjewQxa2E .task1,#mermaid-svg-yj5GWHCSjewQxa2E .task2,#mermaid-svg-yj5GWHCSjewQxa2E .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutside0,#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutside2{fill:#000}#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutside1,#mermaid-svg-yj5GWHCSjewQxa2E .taskTextOutside3{fill:#000}#mermaid-svg-yj5GWHCSjewQxa2E .active0,#mermaid-svg-yj5GWHCSjewQxa2E .active1,#mermaid-svg-yj5GWHCSjewQxa2E .active2,#mermaid-svg-yj5GWHCSjewQxa2E .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-yj5GWHCSjewQxa2E .activeText0,#mermaid-svg-yj5GWHCSjewQxa2E .activeText1,#mermaid-svg-yj5GWHCSjewQxa2E .activeText2,#mermaid-svg-yj5GWHCSjewQxa2E .activeText3{fill:#000 !important}#mermaid-svg-yj5GWHCSjewQxa2E .done0,#mermaid-svg-yj5GWHCSjewQxa2E .done1,#mermaid-svg-yj5GWHCSjewQxa2E .done2,#mermaid-svg-yj5GWHCSjewQxa2E .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-yj5GWHCSjewQxa2E .doneText0,#mermaid-svg-yj5GWHCSjewQxa2E .doneText1,#mermaid-svg-yj5GWHCSjewQxa2E .doneText2,#mermaid-svg-yj5GWHCSjewQxa2E .doneText3{fill:#000 !important}#mermaid-svg-yj5GWHCSjewQxa2E .crit0,#mermaid-svg-yj5GWHCSjewQxa2E .crit1,#mermaid-svg-yj5GWHCSjewQxa2E .crit2,#mermaid-svg-yj5GWHCSjewQxa2E .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-yj5GWHCSjewQxa2E .activeCrit0,#mermaid-svg-yj5GWHCSjewQxa2E .activeCrit1,#mermaid-svg-yj5GWHCSjewQxa2E .activeCrit2,#mermaid-svg-yj5GWHCSjewQxa2E .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-yj5GWHCSjewQxa2E .doneCrit0,#mermaid-svg-yj5GWHCSjewQxa2E .doneCrit1,#mermaid-svg-yj5GWHCSjewQxa2E .doneCrit2,#mermaid-svg-yj5GWHCSjewQxa2E .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-yj5GWHCSjewQxa2E .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-yj5GWHCSjewQxa2E .milestoneText{font-style:italic}#mermaid-svg-yj5GWHCSjewQxa2E .doneCritText0,#mermaid-svg-yj5GWHCSjewQxa2E .doneCritText1,#mermaid-svg-yj5GWHCSjewQxa2E .doneCritText2,#mermaid-svg-yj5GWHCSjewQxa2E .doneCritText3{fill:#000 !important}#mermaid-svg-yj5GWHCSjewQxa2E .activeCritText0,#mermaid-svg-yj5GWHCSjewQxa2E .activeCritText1,#mermaid-svg-yj5GWHCSjewQxa2E .activeCritText2,#mermaid-svg-yj5GWHCSjewQxa2E .activeCritText3{fill:#000 !important}#mermaid-svg-yj5GWHCSjewQxa2E .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-yj5GWHCSjewQxa2E g.classGroup text .title{font-weight:bolder}#mermaid-svg-yj5GWHCSjewQxa2E g.clickable{cursor:pointer}#mermaid-svg-yj5GWHCSjewQxa2E g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-yj5GWHCSjewQxa2E g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-yj5GWHCSjewQxa2E .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-yj5GWHCSjewQxa2E .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-yj5GWHCSjewQxa2E .dashed-line{stroke-dasharray:3}#mermaid-svg-yj5GWHCSjewQxa2E #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E .commit-id,#mermaid-svg-yj5GWHCSjewQxa2E .commit-msg,#mermaid-svg-yj5GWHCSjewQxa2E .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-yj5GWHCSjewQxa2E g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-yj5GWHCSjewQxa2E g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-yj5GWHCSjewQxa2E g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-yj5GWHCSjewQxa2E .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-yj5GWHCSjewQxa2E .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-yj5GWHCSjewQxa2E .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-yj5GWHCSjewQxa2E .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-yj5GWHCSjewQxa2E .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-yj5GWHCSjewQxa2E .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-yj5GWHCSjewQxa2E .edgeLabel text{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-yj5GWHCSjewQxa2E .node circle.state-start{fill:black;stroke:black}#mermaid-svg-yj5GWHCSjewQxa2E .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-yj5GWHCSjewQxa2E #statediagram-barbEnd{fill:#9370db}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-state .divider{stroke:#9370db}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-yj5GWHCSjewQxa2E .note-edge{stroke-dasharray:5}#mermaid-svg-yj5GWHCSjewQxa2E .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-yj5GWHCSjewQxa2E .error-icon{fill:#522}#mermaid-svg-yj5GWHCSjewQxa2E .error-text{fill:#522;stroke:#522}#mermaid-svg-yj5GWHCSjewQxa2E .edge-thickness-normal{stroke-width:2px}#mermaid-svg-yj5GWHCSjewQxa2E .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-yj5GWHCSjewQxa2E .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-yj5GWHCSjewQxa2E .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-yj5GWHCSjewQxa2E .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-yj5GWHCSjewQxa2E .marker{fill:#333}#mermaid-svg-yj5GWHCSjewQxa2E .marker.cross{stroke:#333}

:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}</style> <style>#mermaid-svg-yj5GWHCSjewQxa2E { color: rgba(0, 0, 0, 0.75); font: ; }</style> <g> <g class="output"> <g class="clusters"></g> <g class="edgePaths"> <g class="edgePath LS-A LE-B" id="L-A-B" style="opacity: 1;">

</path> <defs> <marker id="arrowhead33" viewbox="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto">

</path> </marker> </defs> </g> <g class="edgePath LS-A LE-C" style="opacity: 1;" id="L-A-C">

</path> <defs> <marker id="arrowhead34" viewbox="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto">

</path> </marker> </defs> </g> <g class="edgePath LS-B LE-D" style="opacity: 1;" id="L-B-D">

</path> <defs> <marker id="arrowhead35" viewbox="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto">

</path> </marker> </defs> </g> <g class="edgePath LS-C LE-D" style="opacity: 1;" id="L-C-D">

</path> <defs> <marker id="arrowhead36" viewbox="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto">

</path> </marker> </defs> </g> </g> <g class="edgeLabels"> <g class="edgeLabel" transform="translate(117,31)" style="opacity: 1;"> <g transform="translate(-16,-13)" class="label"> <rect rx="0" ry="0" width="32" height="26" style="fill:#e8e8e8;"></rect> <foreignobject width="32" height="26"> 链接
</foreignobject> </g> </g> <g class="edgeLabel" style="opacity: 1;" transform=""> <g transform="translate(0,0)" class="label"> <rect rx="0" ry="0" width="0" height="0" style="fill:#e8e8e8;"></rect> <foreignobject width="0" height="0">

</foreignobject> </g> </g> <g class="edgeLabel" style="opacity: 1;" transform=""> <g transform="translate(0,0)" class="label"> <rect rx="0" ry="0" width="0" height="0" style="fill:#e8e8e8;"></rect> <foreignobject width="0" height="0">

</foreignobject> </g> </g> <g class="edgeLabel" style="opacity: 1;" transform=""> <g transform="translate(0,0)" class="label"> <rect rx="0" ry="0" width="0" height="0" style="fill:#e8e8e8;"></rect> <foreignobject width="0" height="0">

</foreignobject> </g> </g> </g> <g class="nodes"> <g class="node default" id="A" transform="translate(42,79)" style="opacity: 1;"> <rect rx="0" ry="0" x="-34" y="-23" width="68" height="46" class="label-container"></rect> <g class="label" transform="translate(0,0)"> <g transform="translate(-24,-13)"> <foreignobject width="48" height="26">
长方形
</foreignobject> </g> </g> </g> <g class="node default" style="opacity: 1;" id="B" transform="translate(208,31)"> <circle x="-18" y="-23" r="23" class="label-container"></circle> <g class="label" transform="translate(0,0)"> <g transform="translate(-8,-13)"> <foreignobject width="16" height="26">

</foreignobject> </g> </g> </g> <g class="node default" style="opacity: 1;" id="C" transform="translate(208,127)"> <rect rx="5" ry="5" x="-50" y="-23" width="100" height="46" class="label-container"></rect> <g class="label" transform="translate(0,0)"> <g transform="translate(-40,-13)"> <foreignobject width="80" height="26">
圆角长方形
</foreignobject> </g> </g> </g> <g class="node default" style="opacity: 1;" id="D" transform="translate(352.0999984741211,79)">

</polygon> <g class="label" transform="translate(0,0)"> <g transform="translate(-16,-13)"> <foreignobject width="32" height="26">
菱形
</foreignobject> </g> </g> </g> </g>

</g> </g> </svg>

关于 Mermaid 语法,参考 <a href="https://mermaidjs.github.io/">这儿</a>,

流程图(FLowchart.js)

···mermaid
flowchat
st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op
···

效果图:

<svg height="349.875" version="1.1" width="137.5" xmlns="http://www.w3.org/2000/svg" style="overflow: hidden; position: relative;" viewbox="0 0 137.5 349.875" preserveaspectratio="xMidYMid meet"> <desc style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> Created with Raphaël 2.2.0 </desc> <defs style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> <marker id="raphael-marker-endblock33-objoaswk" markerheight="3" markerwidth="3" orient="auto" refx="1.5" refy="1.5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> <use transform="rotate(180 1.5 1.5) scale(0.6,0.6)" stroke-width="1.6667" fill="black" stroke="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></use> </marker> <marker id="raphael-marker-endblock33-objurrdv" markerheight="3" markerwidth="3" orient="auto" refx="1.5" refy="1.5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> <use transform="rotate(180 1.5 1.5) scale(0.6,0.6)" stroke-width="1.6667" fill="black" stroke="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></use> </marker> <marker id="raphael-marker-endblock33-obju5dk9" markerheight="3" markerwidth="3" orient="auto" refx="1.5" refy="1.5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> <use transform="rotate(180 1.5 1.5) scale(0.6,0.6)" stroke-width="1.6667" fill="black" stroke="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></use> </marker> <marker id="raphael-marker-endblock33-obj2gwqc" markerheight="3" markerwidth="3" orient="auto" refx="1.5" refy="1.5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> <use transform="rotate(180 1.5 1.5) scale(0.6,0.6)" stroke-width="1.6667" fill="black" stroke="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></use> </marker> </defs> <rect x="0" y="0" width="50" height="36" rx="20" ry="20" fill="#ffffff" stroke="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" stroke-width="1" class="flowchart" id="st" transform="matrix(1,0,0,1,31.75,11.375)"></rect> <text x="10" y="18" text-anchor="start" font-size="14px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: sans-serif; font-size: 14px; font-weight: normal;" id="stt" class="flowchartt" transform="matrix(1,0,0,1,31.75,11.375)" stroke-width="1"> <tspan dy="5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> 开始 </tspan> </text> <rect x="0" y="0" width="78" height="36" rx="0" ry="0" fill="#ffffff" stroke="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" stroke-width="1" class="flowchart" id="op" transform="matrix(1,0,0,1,17.75,108.75)"></rect> <text x="10" y="18" text-anchor="start" font-size="14px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: sans-serif; font-size: 14px; font-weight: normal;" id="opt" class="flowchartt" transform="matrix(1,0,0,1,17.75,108.75)" stroke-width="1"> <tspan dy="5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> 我的操作 </tspan> </text> </path> <text x="32.375" y="27.375" text-anchor="start" font-size="14px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: sans-serif; font-size: 14px; font-weight: normal;" id="condt" class="flowchartt" transform="matrix(1,0,0,1,2,196.75)" stroke-width="1"> <tspan dy="5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> 确认? </tspan> </text> <rect x="0" y="0" width="50" height="36" rx="20" ry="20" fill="#ffffff" stroke="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" stroke-width="1" class="flowchart" id="e" transform="matrix(1,0,0,1,31.75,312.875)"></rect> <text x="10" y="18" text-anchor="start" font-size="14px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: sans-serif; font-size: 14px; font-weight: normal;" id="et" class="flowchartt" transform="matrix(1,0,0,1,31.75,312.875)" stroke-width="1"> <tspan dy="5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> 结束 </tspan> </text> </path> </path> </path> <text x="61.75" y="261.5" text-anchor="start" font-size="14px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: sans-serif; font-size: 14px; font-weight: normal;" stroke-width="1"> <tspan dy="5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> yes </tspan> </text> </path> <text x="116.5" y="214.125" text-anchor="start" font-size="14px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: sans-serif; font-size: 14px; font-weight: normal;" stroke-width="1"> <tspan dy="5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"> no </tspan> </text> </svg>

关于 Flowchart流程图 语法,参考 <a href="http://adrai.github.io/flowchart.js/">这儿</a>.

导出与导入

导出

如果你想尝试使用此编辑器, 你可以在此篇文章任意编辑。当你完成了一篇文章的写作, 在上方工具栏找到 文章导出 ,生成一个.md文件或者.html文件进行本地保存。

导入

如果你想加载一篇你写过的.md文件或者.html文件,在上方工具栏可以选择导入功能进行对应扩展名的文件导入, 继续你的创作。

<hr class="footnotes-sep"> <section class="footnotes">

<a href="https://mermaidjs.github.io/">mermaid语法说明</a> <a href="#fnref1" class="footnote-backref">↩︎</a>

注脚的解释 <a href="#fnref2" class="footnote-backref">↩︎</a>

</section>

原文地址:https://blog.csdn.net/qq877728715/article/details/93185327?ops_request_misc=&request_id=2b738d7fd40e442a82fd9ffe84137110&biz_id=&utm_medium=distribute.pc_search_result.none-task-blog-2~all~koosearch~default-24-93185327-null-null.142^v88^insert_down28v1,239^v2^insert_chatgpt&utm_term=markdown

本文章网址:https://www.sjxi.cn/detil/05897be7af80416190e48252d4c74e28

最新评论

当前未登陆哦
登陆后才可评论哦

湘ICP备2021009447号

×

(穷逼博主)在线接单

QQ: 1164453243

邮箱: abcdsjx@126.com

前端项目代做
前后端分离
Python 爬虫脚本
Java 后台开发
各种脚本编写
服务器搭建
个人博客搭建
Web 应用开发
Chrome 插件编写
Bug 修复