程序地带

CSDN-markdown编辑器教程



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


欢迎使用Markdown编辑器

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


新的改变

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


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

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


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

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


如何改变文本的样式

强调文本 强调文本


加粗文本 加粗文本


标记文本


删除文本


引用文本


H2O is是液体。


210 运算结果是 1024.


插入链接与图片

链接: link.


图片: Alt


带尺寸的图片: Alt


居中的图片: Alt


居中并且带尺寸的图片: Alt


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


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

去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片.


// An highlighted block
var foo = 'bar';
生成一个适合你的列表
项目
项目
项目
项目1项目2项目3
计划任务 完成任务
创建一个表格

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


项目Value电脑$1600手机$12导管$1
设定内容居中、居左、居右

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


第一列第二列第三列第一列文本居中第二列文本居右第三列文本居左
SmartyPants

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


TYPEASCIIHTMLSingle 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
创建一个自定义列表
Markdown
Text-to-
HTML conversion tool
Authors
John
Luke
如何创建一个注脚

一个具有注脚的文本。2


注释也是必不可少的

Markdown将文本转换为 HTML。


KaTeX数学公式

您可以使用渲染LaTeX数学表达式 KaTeX:


Gamma公式展示
Γ
(
n
)
=
(
n

1
)
!

n

N
Gamma(n) = (n-1)!quadforall ninmathbb 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 数学表达式here.


新的甘特图功能,丰富你的文章
Mon 06
Mon 13
Mon 20
已完成
进行中
计划一
计划二
现有任务
Adding GANTT diagram functionality to mermaid
关于 甘特图 语法,参考 这儿,
UML 图表

可以使用UML图表进行渲染。 Mermaid. 例如下面产生的一个序列图:


#mermaid-svg-RQRkwI54veHArS4q .label{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-RQRkwI54veHArS4q .label text{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .node rect,#mermaid-svg-RQRkwI54veHArS4q .node circle,#mermaid-svg-RQRkwI54veHArS4q .node ellipse,#mermaid-svg-RQRkwI54veHArS4q .node polygon,#mermaid-svg-RQRkwI54veHArS4q .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-RQRkwI54veHArS4q .node .label{text-align:center;fill:#333}#mermaid-svg-RQRkwI54veHArS4q .node.clickable{cursor:pointer}#mermaid-svg-RQRkwI54veHArS4q .arrowheadPath{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-RQRkwI54veHArS4q .flowchart-link{stroke:#333;fill:none}#mermaid-svg-RQRkwI54veHArS4q .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-RQRkwI54veHArS4q .edgeLabel rect{opacity:0.9}#mermaid-svg-RQRkwI54veHArS4q .edgeLabel span{color:#333}#mermaid-svg-RQRkwI54veHArS4q .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-RQRkwI54veHArS4q .cluster text{fill:#333}#mermaid-svg-RQRkwI54veHArS4q 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-RQRkwI54veHArS4q .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-RQRkwI54veHArS4q text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-RQRkwI54veHArS4q .actor-line{stroke:grey}#mermaid-svg-RQRkwI54veHArS4q .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-RQRkwI54veHArS4q .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-RQRkwI54veHArS4q #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-RQRkwI54veHArS4q .sequenceNumber{fill:#fff}#mermaid-svg-RQRkwI54veHArS4q #sequencenumber{fill:#333}#mermaid-svg-RQRkwI54veHArS4q #crosshead path{fill:#333;stroke:#333}#mermaid-svg-RQRkwI54veHArS4q .messageText{fill:#333;stroke:#333}#mermaid-svg-RQRkwI54veHArS4q .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-RQRkwI54veHArS4q .labelText,#mermaid-svg-RQRkwI54veHArS4q .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-RQRkwI54veHArS4q .loopText,#mermaid-svg-RQRkwI54veHArS4q .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-RQRkwI54veHArS4q .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-RQRkwI54veHArS4q .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-RQRkwI54veHArS4q .noteText,#mermaid-svg-RQRkwI54veHArS4q .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-RQRkwI54veHArS4q .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-RQRkwI54veHArS4q .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-RQRkwI54veHArS4q .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-RQRkwI54veHArS4q .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .section{stroke:none;opacity:0.2}#mermaid-svg-RQRkwI54veHArS4q .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-RQRkwI54veHArS4q .section2{fill:#fff400}#mermaid-svg-RQRkwI54veHArS4q .section1,#mermaid-svg-RQRkwI54veHArS4q .section3{fill:#fff;opacity:0.2}#mermaid-svg-RQRkwI54veHArS4q .sectionTitle0{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .sectionTitle1{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .sectionTitle2{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .sectionTitle3{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-RQRkwI54veHArS4q .grid .tick text{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .grid path{stroke-width:0}#mermaid-svg-RQRkwI54veHArS4q .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-RQRkwI54veHArS4q .task{stroke-width:2}#mermaid-svg-RQRkwI54veHArS4q .taskText{text-anchor:middle;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .taskText:not([font-size]){font-size:11px}#mermaid-svg-RQRkwI54veHArS4q .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-RQRkwI54veHArS4q .task.clickable{cursor:pointer}#mermaid-svg-RQRkwI54veHArS4q .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-RQRkwI54veHArS4q .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-RQRkwI54veHArS4q .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-RQRkwI54veHArS4q .taskText0,#mermaid-svg-RQRkwI54veHArS4q .taskText1,#mermaid-svg-RQRkwI54veHArS4q .taskText2,#mermaid-svg-RQRkwI54veHArS4q .taskText3{fill:#fff}#mermaid-svg-RQRkwI54veHArS4q .task0,#mermaid-svg-RQRkwI54veHArS4q .task1,#mermaid-svg-RQRkwI54veHArS4q .task2,#mermaid-svg-RQRkwI54veHArS4q .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-RQRkwI54veHArS4q .taskTextOutside0,#mermaid-svg-RQRkwI54veHArS4q .taskTextOutside2{fill:#000}#mermaid-svg-RQRkwI54veHArS4q .taskTextOutside1,#mermaid-svg-RQRkwI54veHArS4q .taskTextOutside3{fill:#000}#mermaid-svg-RQRkwI54veHArS4q .active0,#mermaid-svg-RQRkwI54veHArS4q .active1,#mermaid-svg-RQRkwI54veHArS4q .active2,#mermaid-svg-RQRkwI54veHArS4q .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-RQRkwI54veHArS4q .activeText0,#mermaid-svg-RQRkwI54veHArS4q .activeText1,#mermaid-svg-RQRkwI54veHArS4q .activeText2,#mermaid-svg-RQRkwI54veHArS4q .activeText3{fill:#000 !important}#mermaid-svg-RQRkwI54veHArS4q .done0,#mermaid-svg-RQRkwI54veHArS4q .done1,#mermaid-svg-RQRkwI54veHArS4q .done2,#mermaid-svg-RQRkwI54veHArS4q .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-RQRkwI54veHArS4q .doneText0,#mermaid-svg-RQRkwI54veHArS4q .doneText1,#mermaid-svg-RQRkwI54veHArS4q .doneText2,#mermaid-svg-RQRkwI54veHArS4q .doneText3{fill:#000 !important}#mermaid-svg-RQRkwI54veHArS4q .crit0,#mermaid-svg-RQRkwI54veHArS4q .crit1,#mermaid-svg-RQRkwI54veHArS4q .crit2,#mermaid-svg-RQRkwI54veHArS4q .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-RQRkwI54veHArS4q .activeCrit0,#mermaid-svg-RQRkwI54veHArS4q .activeCrit1,#mermaid-svg-RQRkwI54veHArS4q .activeCrit2,#mermaid-svg-RQRkwI54veHArS4q .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-RQRkwI54veHArS4q .doneCrit0,#mermaid-svg-RQRkwI54veHArS4q .doneCrit1,#mermaid-svg-RQRkwI54veHArS4q .doneCrit2,#mermaid-svg-RQRkwI54veHArS4q .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-RQRkwI54veHArS4q .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-RQRkwI54veHArS4q .milestoneText{font-style:italic}#mermaid-svg-RQRkwI54veHArS4q .doneCritText0,#mermaid-svg-RQRkwI54veHArS4q .doneCritText1,#mermaid-svg-RQRkwI54veHArS4q .doneCritText2,#mermaid-svg-RQRkwI54veHArS4q .doneCritText3{fill:#000 !important}#mermaid-svg-RQRkwI54veHArS4q .activeCritText0,#mermaid-svg-RQRkwI54veHArS4q .activeCritText1,#mermaid-svg-RQRkwI54veHArS4q .activeCritText2,#mermaid-svg-RQRkwI54veHArS4q .activeCritText3{fill:#000 !important}#mermaid-svg-RQRkwI54veHArS4q .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q g.classGroup text{fill:#9370db;stroke:none;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-RQRkwI54veHArS4q g.classGroup text .title{font-weight:bolder}#mermaid-svg-RQRkwI54veHArS4q g.clickable{cursor:pointer}#mermaid-svg-RQRkwI54veHArS4q g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-RQRkwI54veHArS4q g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-RQRkwI54veHArS4q .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-RQRkwI54veHArS4q .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-RQRkwI54veHArS4q .dashed-line{stroke-dasharray:3}#mermaid-svg-RQRkwI54veHArS4q #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q .commit-id,#mermaid-svg-RQRkwI54veHArS4q .commit-msg,#mermaid-svg-RQRkwI54veHArS4q .branch-label{fill:lightgrey;color:lightgrey;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .slice{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-RQRkwI54veHArS4q g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-RQRkwI54veHArS4q g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-RQRkwI54veHArS4q g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-RQRkwI54veHArS4q g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-RQRkwI54veHArS4q .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-RQRkwI54veHArS4q .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-RQRkwI54veHArS4q .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-RQRkwI54veHArS4q .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-RQRkwI54veHArS4q .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-RQRkwI54veHArS4q .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-RQRkwI54veHArS4q .edgeLabel text{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-RQRkwI54veHArS4q .node circle.state-start{fill:black;stroke:black}#mermaid-svg-RQRkwI54veHArS4q .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-RQRkwI54veHArS4q #statediagram-barbEnd{fill:#9370db}#mermaid-svg-RQRkwI54veHArS4q .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-RQRkwI54veHArS4q .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-RQRkwI54veHArS4q .statediagram-state .divider{stroke:#9370db}#mermaid-svg-RQRkwI54veHArS4q .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-RQRkwI54veHArS4q .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-RQRkwI54veHArS4q .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-RQRkwI54veHArS4q .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-RQRkwI54veHArS4q .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-RQRkwI54veHArS4q .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-RQRkwI54veHArS4q .note-edge{stroke-dasharray:5}#mermaid-svg-RQRkwI54veHArS4q .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-RQRkwI54veHArS4q .error-icon{fill:#522}#mermaid-svg-RQRkwI54veHArS4q .error-text{fill:#522;stroke:#522}#mermaid-svg-RQRkwI54veHArS4q .edge-thickness-normal{stroke-width:2px}#mermaid-svg-RQRkwI54veHArS4q .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-RQRkwI54veHArS4q .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-RQRkwI54veHArS4q .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-RQRkwI54veHArS4q .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-RQRkwI54veHArS4q .marker{fill:#333}#mermaid-svg-RQRkwI54veHArS4q .marker.cross{stroke:#333}
:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}
#mermaid-svg-RQRkwI54veHArS4q {
color: rgba(0, 0, 0, 0.75);
font: ;
}
张三
李四
王五
你好!李四, 最近怎么样?
你最近怎么样,王五?
我很好,谢谢!
我很好,谢谢!
李四想了很长时间, 文字太长了
不适合放在一行.
打量着王五...
很好... 王五, 你怎么样?
张三
李四
王五

这将产生一个流程图。:


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

圆角长方形
菱形
关于 Mermaid 语法,参考 这儿,
FLowchart流程图

我们依旧会支持flowchart的流程图:


Created with Raphaël 2.2.0
开始
我的操作
确认?
结束
yes
no
关于 Flowchart流程图 语法,参考 这儿.
导出与导入
导出

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


导入

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


mermaid语法说明 ↩︎

注脚的解释 ↩︎


版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_28242747/article/details/109757348

随机推荐

美洽客服JavaScript 网页插件

 关于美洽2016JavaScript网站插件,以及通过链接直接打开的单页美洽对话窗口的接口说明。手动初始化 在加载了美洽网站插件的前提下,你可以在自己的JavaScrip...

meiqia888 阅读(351)

基于MACCMS,洛雪音乐实现三端

移动端由Flutter编写,目前已开源,移动端可完美对接MACCMS、洛雪音乐,github地址:https://github.com/Mock...

weixin_44018385 阅读(599)