@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagrammo/dgmo",
3
- "version": "0.4.4",
3
+ "version": "0.5.1",
4
4
  "description": "DGMO diagram markup language — parser, renderer, and color system",
5
5
  "license": "MIT",
6
6
  "type": "module",
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
- // Recognize ## section headers (skip, but don't treat as comments)
112
- if (/^#{2,}\s+/.test(trimmed)) continue;
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;