Excalidraw
The Excalidraw plugin puts Excalidraw, the hand-drawn whiteboard, inside Eidos MD. Sketch a flow, an architecture, or a wireframe, and it’s kept as a file in your project, so it lives in git beside the pages it explains. Show a drawing inside any page and it updates there each time you save it.
Excalidraw is off in a new project. Turn it on in Settings › Built-in plugins. It needs Assets on too, since each drawing is kept as an asset.
- Open Excalidraw in the Activity Bar and press +, or run New drawing from the command palette.
- Name it. The drawing opens with Excalidraw’s tools: shapes, arrows, lines, text, the pen, images, and frames.
- Draw. Your changes are saved as you go.
Draw together
Section titled “Draw together”A drawing is live, like your pages. Open it in two windows, or with a teammate on a synced project, and you draw in it at the same time: each person’s pointer shows on the drawing in their color, and when two people change different shapes, both changes stay. If a drawing can’t be live, it saves the way your other pages do, with Auto Save as you set it or ⌘S (Ctrl+S).
The editor follows your light or dark theme and your language. Excalidraw’s own menu exports a PNG or SVG, or a .excalidraw file to open at excalidraw.com. Shapes you add to your library are kept on this computer for every drawing. To add a ready-made set, press Browse libraries in the Library panel, then Add to Excalidraw on any library on Excalidraw’s library site: it joins the Library panel of every drawing.
Show a drawing in a page
Section titled “Show a drawing in a page”In the editor, type / and choose Drawing. Pick a drawing you have or name a new one. The page shows the drawing, with Edit drawing to open it. In the page’s file, it’s a plain link between two markers:
<!-- drawings:drawing -->[Login flow](../assets/login-flow.excalidraw)<!-- /drawings:drawing -->Anywhere else, such as GitHub or GitLab, or with the plugin off, that’s a link to the file.
What’s in the file
Section titled “What’s in the file”A drawing is a .excalidraw file in your assets folder, plain JSON that excalidraw.com also opens. Eidos MD writes each one the same way every time so a change reads clearly in git: keys in order, no edit counters, and each pasted image saved as its own file beside the drawing rather than packed into the JSON.
Turn on SVG previews in Excalidraw settings to also write <name>.excalidraw.svg beside each drawing when you save it. GitHub, GitLab, and any image viewer show that picture.
From the command line
Section titled “From the command line”eidos drawings listeidos drawings new "Login flow"eidos drawings show assets/login-flow.excalidraweidos drawings settlesettle rewrites a drawing made elsewhere, such as one downloaded from excalidraw.com, in Eidos MD’s form, saving its images as files. eidos check reports a drawing that can’t be read, an image whose file is gone, and a drawing still carrying images inside its JSON.