@jxsuite/parser 0.7.0 → 0.8.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/transpile.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/parser",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Jx markdown parser and external class integration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,6 +41,6 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@happy-dom/global-registrator": "^20.9.0",
44
- "@jxsuite/runtime": "^0.6.2"
44
+ "@jxsuite/runtime": "^0.7.0"
45
45
  }
46
46
  }
package/src/transpile.js CHANGED
@@ -586,7 +586,9 @@ export function transpileJxMarkdown(source) {
586
586
 
587
587
  for (const node of bodyNodes) {
588
588
  const converted = mdastNodeToJx(node);
589
- if (converted != null) children.push(converted);
589
+ if (converted == null) continue;
590
+ if (Array.isArray(converted)) children.push(...converted);
591
+ else children.push(converted);
590
592
  }
591
593
 
592
594
  if (children.length > 0) {