migrate_diagram
Migrate legacy DGMO files (pre-0.18.0) to the new inline metadata format. Resolves E_PIPE_OPERATOR_REMOVED diagnostics by converting pipe-delimited metadata to 'Foo k: v' syntax.
Instructions
Migrate legacy DGMO content (pre-0.18.0) to the unified §1.4 same-line metadata grammar. Input is the source of a .dgmo file or a single fenced ```dgmo block; output is the migrated source plus a unified-style diff. The | metadata delimiter was removed in 0.18.0 in favor of Foo k: v, k: v inline. Use this when you encounter a .dgmo file authored against 0.17.x that emits E_PIPE_OPERATOR_REMOVED diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The DGMO source to migrate. A single full diagram (including the first-line chart type) — not a multi-block markdown file. |