Diagrams in Markdown
We have two alternative #recipe for displaying diagrams in markdown:
Mermaid
Section titled “Mermaid”You can use Mermaid plugin to draw and preview diagrams in your content.
Draw.io
Section titled “Draw.io”Draw.io extension allows you to create, edit, and display your diagrams without leaving Visual Studio Code. The .drawio.svg or .drawio.png files can be automatically embedded and displayed in published Foams, no export needed. FYI, the diagram below was made using Draw.io! You can check the diagram here.
Using Draw.io
Section titled “Using Draw.io”- Install Draw.io VS Code extension.
- Create a new
*.drawio.svgor*.drawio.pngfile. - Start drawing your diagram. Once you done, save it.
- Embed the diagram file as you embedding the image file, for example:

LINKS TO THIS PAGE
Recipes
Published with Foam