好好爱自己!

学习markdown(一)

转:https://www.jianshu.com/p/81e1608ea2d8

------------------------------------------------------------------------
Markdown 流程工具和插件很多,这里记录一下简单的Flow的使用

预览

Markdown Flow 预览

源码

    ```flow
    open=>start: Open:>https://github.com/knsv/mermaid
    userInput=>inputoutput: User Input
    processes=>operation: Processes
    results=>condition: Yes or No?
    regis=>condition: GoSignUp,Yes or No?
    userr=>operation: SignUp
    end=>end: End
    open->userInput->processes->results
    results(yes)->end
    results(no)->regis
    regis(yes)->userr
    regis(no)->userInput
    ```

说明

flow 流程图分为两部分,定义节点和控制走向。

定义节点

open=>start: Open:>https://github.com/knsv/mermaid
// 格式
tag=type: content:>url
  • tag 节点名称
  • type 节点类型
    • start 开始节点
    • end 结束节点
    • operation 操作节点
    • subroutine 子程序节点
    • condition 条件节点
    • inputoutput 输入或产出节点
  • content 节点描述
  • url 超连接,与文本绑定

关联节点

-> 来关两个节点,如果是 condition 节点将会有 yesno 两个分支。
open->userInput->processes->results
results(yes)->end
results(no)->regis

注: 暂时发现 condition 只能有yes or no 两种条件。如果有其他方法请留言。



posted @   立志做一个好的程序员  阅读(290)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
历史上的今天:
2018-12-12 Aliasing input/output properties
2018-12-12 angular6 Can't bind to 'zzst' since it isn't a known property of
2018-12-12 [转]DOM 中 Property 和 Attribute 的区别
2018-12-12 Angular6
2016-12-12 为什么要 urlencode()
2016-12-12 git 提交到github时不用每次都输入用户名,密码

不断学习创作,与自己快乐相处

点击右上角即可分享
微信分享提示