Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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