Most of the time, we just want to draw a simple flow chart, which is not too much burden of learning. Here we introduce a method to draw a flow chart with Markdown through several simple rules, which can be used in less than 5 minutes.

Tools to use: Typora lightweight Markdown tool

Usage:

Use the package as a whole, that is, the key under ESC on the keyboard, select Flow as the language

Grammar:

Module definition:

Module name => Type: display content [:> hyperlink URL]

Note: there must be no Spaces after =>, but Spaces after:

Join syntax:

Module name 1-> Module Connection 2

Module name 1(arrow direction)-> Module connection 2

Use -> symbolic links between modules

Arrow directions include: left, right, top, bottom, yes, no (direction of module arrow)

Type:

Operation: an operation. Condition: a condition. Inputoutput: input. Subroutine: a subroutineCopy the code

example

Definition module

Start =>start: start // Define a start module end => End: end // Define an end module Procedure 1=>operation: process 1:>https://www.baidu.com // Define procedure 1: Procedure 2=>opertaion: Procedure 2 Condition 1=>condition: Greater than or equal to 0? Input => inputOutput: Input a number // Define an inputOutput module output 1=> InputOutput: Output this number output 2=> inputOutput: Output the number of * 1 start - > input - > condition 1 (yes) - 1 - > > output end condition 1 (no) - > output end (right) - > 2Copy the code