Skip to content

Instantly share code, notes, and snippets.

@liuderchi
Last active August 29, 2016 09:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuderchi/407062c91a6e427f28c137e6ad552791 to your computer and use it in GitHub Desktop.
Save liuderchi/407062c91a6e427f28c137e6ad552791 to your computer and use it in GitHub Desktop.

Draw Diagram using Markdown

  • markdown preview enhanced is a Atom package

    • preview markdown in Atom editor on the fly
    • allow you to draw flow chart using power of mermaid
    • you can export the document in html or pdf
  • mermaid let you draw diagram like writing markdown

    • supporting lots of diagram

DEMO

  • compare serialize() and deserialize()
graph LR
s(" <code>dict</code> or <code>list</code>
   <br/><br/>in Python")
b["formated string: <code>str</code>
  <br/><br/>(exchangeable data)"]

s --"<code>json.dumps()</code>
  <br/><br/>serialization"--> b

b --"<code>json.loads()</code>
  <br/><br/>deserialization"--> s
  • the previous content looked like this:

demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment