Markdown writes out high-end sequence diagrams.
The previous article shared how to use Markdown to write flowcharts, continue to mine the unambiguous features of MDs, and share a timing diagram in md format.
Syntax diagram
Sequence diagram 4 elements title: title participant: define participating members, as definition alias flow arrow->: solid boldface arrow, synchronous invocation-- >: dotted boldface arrow, return result-> >: solid line empty arrow, asynchronous message-- > >: dotted empty arrow, return result comment note over: comment, suspended on member note left of: comment, member left note right of: comment Example on the right side of the member title: Web service cache update sequence chart participant data Chinese as apiparticipant cache as cacheparticipant message queue as mqparticipant data service as srvapi- > cache: read cache cache-- > api: return cache Note over api: if the cache is not read, call the data service api- > > mq: request to update cache mq- > > srv: trigger update cache srv-- > cache: update cache display effect
Md online Editor: https://www.mdeditor.com/