This is a tool to parse a DrawIO exported XML file and generate the markdown doc. The gist is that you only need to maintain the diagrams.
Draw any diagram on DrawIO, add your note to:
-
On the diagram page (not to select any object), add
note
attribute. -
Select any element, add
tooltip
attribute. -
Export the diagram as XML file.
-
Export the diagram as PNG images. (Not necessary, it should be able to generate SVG/PNG directly adcording to the XML, save it for later implementation).
-
Run this tool.
draw2md --assets <folder> --name <DiagramName>
- Image as data url, so you only see one markdown file.
- Organize objects by tab.
Enjoy!