@diagrammo/dgmo 0.4.4 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +149 -149
- package/dist/index.cjs +689 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -19
- package/dist/index.d.ts +26 -19
- package/dist/index.js +689 -174
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/chart.ts +5 -2
- package/src/d3.ts +622 -62
- package/src/echarts.ts +13 -12
- package/src/er/parser.ts +88 -3
- package/src/er/renderer.ts +91 -2
- package/src/er/types.ts +3 -0
- package/src/kanban/mutations.ts +1 -1
- package/src/kanban/parser.ts +55 -36
- package/src/sharing.ts +8 -0
package/package.json
CHANGED
package/src/chart.ts
CHANGED
|
@@ -108,8 +108,11 @@ export function parseChart(
|
|
|
108
108
|
// Skip empty lines
|
|
109
109
|
if (!trimmed) continue;
|
|
110
110
|
|
|
111
|
-
//
|
|
112
|
-
if (/^#{2,}\s+/.test(trimmed))
|
|
111
|
+
// Reject legacy ## section headers
|
|
112
|
+
if (/^#{2,}\s+/.test(trimmed)) {
|
|
113
|
+
result.diagnostics.push(makeDgmoError(lineNumber, `'${trimmed}' — ## syntax is no longer supported. Use [Group] containers instead`));
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
113
116
|
|
|
114
117
|
// Skip comments
|
|
115
118
|
if (trimmed.startsWith('//')) continue;
|