Skip to content

Instantly share code, notes, and snippets.

@danielmartin
Last active June 28, 2018 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmartin/e4aa7c63d21699e892216601d4033243 to your computer and use it in GitHub Desktop.
Save danielmartin/e4aa7c63d21699e892216601d4033243 to your computer and use it in GitHub Desktop.
Convert Markdown tables to flowcharts using Org and Lisp

This file generates a flowchart in PNG format from two Markdown tables: The first one specifies the different states and the second one specifies the transitions between states.

Requires Graphviz (https://www.graphviz.org)

NodeLabelShapeFill Color
S_LampNotWorkingLamp doesn’t workellipsepink
S_LampPluggedLamp plugged in?diamondyellow
S_PlugInLampPlug in lampellipsegreen
S_BulbBurnedOutBulb burned out?diamondyellow
S_ReplaceBulbReplace bulbellipsegreen
S_RepairLampRepair lampellipsegreen
FromToEdge Label
S_LampNotWorkingS_LampPlugged
S_LampPluggedS_PlugInLampNo
S_LampPluggedS_BulbBurnedOutYes
S_BulbBurnedOutS_ReplaceBulbYes
S_BulbBurnedOutS_RepairLampNo

flowchart.png

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