Diagramming
Diagrams.net
Outline includes support for diagrams.net, you can insert through the block menu or by typing /diagram directly – you will then see the option to insert a new diagram.
When a new diagram is added to the document the editor will be automatically opened where you can draw. Every time the diagram is saved it will be updated in Outline in realtime. Diagrams are stored in Outline as PNG’s with embedded data, as such they can be used like regular images – with the lightbox, captions, and comments.

Edit an existing diagram
To update an existing diagram in a document, simply highlight the image and click on the edit/pencil icon to reopen on diagrams.net.
Note that the Outline document must be kept open while drawing on diagrams.net for the data to be sent back and saved correctly.
Importing
Existing diagrams can be imported into Outline by using the File → Export as → PNG option on diagrams.net – then insert the image into a document.
Self-hosting
It is also possible to use your own instance of diagrams.net deployed on your own infrastructure. To setup, just go to Settings → Integrations → Diagrams.net and enter the hostname where diagrams.net is deployed.
Example

Mermaid
Outline also includes support for the popular Mermaid diagramming library. To insert a Mermaid diagram create a code block through the block menu and change the language to “Mermaid diagram” or type /diagram directly – you will then see the option to switch between a source code and diagram view.
Tip
Outline documents include a “full width” display option in the document options that works well with these diagrams.
Example
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you laterSupported diagrams
Version v11.9.0 is bundled with Outline, which supports the following diagram types:
Flowchart
Sequence
Gantt
Class
Git
Entity relationship
User journey
Quadrant chart
XY chart