Add images and diagrams
On this page
Paste or drop an image into Visual editor, or choose Add image. Check the result and wait for Draft saved to workspace.
Where images are saved
Native Spaces store assets with documents. GitHub drafts stage images for the same review and submission as Markdown.
Existing relative references resolve within your permitted space/repository. Unsupported or remote references may stay protected; inspect them in Markdown source. Imported images may need review.
If an asset exceeds configured size or count limits, read the error and check saving. An image error is not a successful save or commit. Native space export includes assets; a Markdown-only download does not.
Mermaid diagrams
Choose Diagram in the toolbar, select a template or enter Mermaid source, then Preview diagram. Check the result and choose Apply diagram. Wait for the saved-draft confirmation. Use Edit diagram to reopen an existing diagram; Cancel leaves the document unchanged.
Supported types are flowcharts (flowchart or graph), sequence diagrams (sequenceDiagram), entity relationships (erDiagram) and state diagrams (stateDiagram-v2). Start with this flowchart:
flowchart TD
A[Write] --> B[Review]
B --> C[Share]If preview reports an error, correct the source and preview again. Use plain labels and the supplied templates; HTML, links, images and custom configuration directives are disabled. Other diagram types and diagrams over 20,000 characters are not supported.
Choose Apply diagram, wait for the draft to save, then reopen it. The Mermaid source stays in Markdown and renders inside the document.
You can also ask AI for a diagram and review the proposal. AI remains beta.
Advanced: rendering is isolated. Unsafe directives, links or oversized diagrams may be rejected. Mermaid source stays in your Markdown, but another viewer must support Mermaid to render it.

