Export plan (SVG / Markdown)
Generate deterministic SVG plan text or a Markdown outline from the same node tree; PNG returns only an untested rasterisation step list, never a fake image.
Inputs and parameters
input— Markdown outline (processed locally)format— Export formattemplateId— Local template (optional, ID only)
Real example
input: "# Article outline\n- Intro\n- Body" · format: svg
→ <svg xmlns="http://www.w3.org/2000/svg" width="…" height="…" …><!-- plan-only SVG; NOT markmap-rendered; PNG not tested --><rect …/><text …>Intro</text>…</svg> → downloadable mind-export.svg plan text; format=md returns "- Intro\n- Body\n".
Limits and failure handling
SVG is deterministic layout plan text, not real markmap rendering; PNG rasterisation and in-browser SVG painting are untested. Font waiting is not performed (no browser); a future real renderer must add font readiness, controlled canvas sizes and cross-browser verification. Filenames mind-export.svg / mind-export.md; user text is never exported into URLs or analytics.
FAQ
Can I get a real PNG image?
Not this round. Without a browser canvas, PNG returns only a step list (document.fonts.ready, controlled-size canvas, toBlob, Object URL release) explicitly marked rasterised:false / tested:false.
Can scripts be injected into the SVG?
No. Every label is escaped by escapeHtml, the link protocol allowlist applies, and the plan text contains no <script>, onerror= or javascript:.
Can empty input be exported?
An empty-state message is returned; no empty file and no stack trace. Download/copy buttons only appear after success.