Loading…
Loading…
The code panel accepts eraser.io diagram code as a one-shot import. Pasted text that smells like eraser gets a Convert hint; converting rewrites it into this language, and drawing proceeds through the normal compiler. Eraser is an import format; Koboyo diagram code is the editing format.
Eraser code carries no header, so the transpiler detects the family from the text:
erd;sequence;architecture;flowchart.The detected header is prepended to the output.
This eraser flow:
Compute [icon: aws-ec2] > Storage [icon: aws-s3]
Storage > Database [icon: aws-rds]
converts to Koboyo code that renders like this:
Compute [aws/ec2]
Storage [aws/simple-storage-service]
Database [aws/rds]
Compute -> Storage -> Database
> for N:1, < for 1:N, - for
1:1, <> for N:M.> becomes ->, <>
becomes <->; plain lines (-, --) become arrows with a note.styleMode, typeface, and autoNumber lines are commented out.Every input line maps to one output line, so diagnostics point at the converted text. Text that already starts with a family header passes through untouched, so converting the same input twice is safe.