Excalidraw Diagrams in Markdown
How to embed beautiful, hand-drawn style Excalidraw diagrams directly in your documentation.
Excalidraw is a virtual whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them. It is very popular for quick sketching of ideas, architectures, and layouts.
MarkdownToPrettyPDF supports rendering Excalidraw diagrams through Kroki.
Embedding Excalidraw
Excalidraw does not natively use a text-based syntax like PlantUML or Mermaid. Instead, it saves data in a JSON format. To render an Excalidraw diagram, you can paste the JSON payload into an excalidraw code block.
|
|
|
Typically, you would copy the JSON source directly from an .excalidraw file or by using the “Copy to Clipboard as JSON” feature in Excalidraw.
Why use Excalidraw?
Excalidraw is great when you want to make diagrams that look less rigid and formal. The hand-drawn style is engaging and is often perfect for presenting ideas in a work-in-progress or brainstormed state.