Skip to content

Embed Diagrams

Gaudenz Alder edited this page Oct 16, 2019 · 34 revisions

To embed diagrams in GitHub markdown, diagrams can be saved as editable .png or .svg images and referenced directly using img tags, eg. ![Alt](images/someimage.png) with draw.io for GitHub at https://www.draw.io/?mode=github. To read and write files in Wikis, the desktop version from https://get.draw.io must be used due to limitations of the GitHub REST API.

Here is an example vector image:

Database Schema

Here is an example bitmap image:

Database Schema

Link to use the diagram as an images: https://raw.githubusercontent.com/wiki/jgraph/draw.io/images/schema.png Link to view the diagram in fullscreen: https://www.draw.io/?chrome=0&lightbox=1&url=https%3A%2F%2Fraw.githubusercontent.com%2Fwiki%2Fjgraph%2Fdraw.io%2Fimages%2Fschema.png%3Ft%3D0 Link to use the diagram as a template: https://www.draw.io/?#Uhttps%3A%2F%2Fraw.githubusercontent.com%2Fwiki%2Fjgraph%2Fdraw.io%2Fimages%2Fschema.png Link to for direct editing (no wiki only): https://www.draw.io/#Hjgraph%2Fdrawio-diagrams%2Fmaster%2Fdiagrams%2Fschema.xml

Clone this wiki locally