specatlas 0.1.18 → 0.1.19

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/dist/bin.js +19 -1
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -8770,7 +8770,25 @@ function highlightCode(code, language, enabled) {
8770
8770
  }
8771
8771
  }
8772
8772
  function splitRow(line) {
8773
- return line.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((cell) => cell.trim());
8773
+ const trimmed = line.trim().replace(/^\|/, "").replace(/\|$/, "");
8774
+ const cells = [];
8775
+ let current = "";
8776
+ for (let index = 0; index < trimmed.length; index += 1) {
8777
+ const char = trimmed[index] ?? "";
8778
+ if (char === "\\" && trimmed[index + 1] === "|") {
8779
+ current += "|";
8780
+ index += 1;
8781
+ continue;
8782
+ }
8783
+ if (char === "|") {
8784
+ cells.push(current.trim());
8785
+ current = "";
8786
+ continue;
8787
+ }
8788
+ current += char;
8789
+ }
8790
+ cells.push(current.trim());
8791
+ return cells;
8774
8792
  }
8775
8793
  function tableOfContents(markdown2, maxLevel = 2) {
8776
8794
  const entries = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specatlas",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "SpecAtlas: kernel determinista de Spec-Driven Development (CLI)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@specatlas/adapters": "0.1.1",
43
- "@specatlas/core": "0.1.15"
43
+ "@specatlas/core": "0.1.16"
44
44
  },
45
45
  "scripts": {
46
46
  "typecheck": "tsc --noEmit",