specatlas 0.1.18 → 0.1.20

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 +23 -4
  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 = [];
@@ -8826,9 +8844,10 @@ function renderMarkdown(markdown2, opts = {}) {
8826
8844
  if (mermaidMode === "script" && opts.mermaidScriptUri) {
8827
8845
  out.push(`<div class="mermaid-block">
8828
8846
  <div class="diagram-tools" role="toolbar" aria-label="Herramientas del diagrama">
8829
- <button type="button" data-diagram-zoom="out" title="Alejar" aria-label="Alejar">\u2212</button>
8830
- <button type="button" data-diagram-zoom="in" title="Acercar" aria-label="Acercar">\uFF0B</button>
8831
- <button type="button" data-diagram-zoom="reset" title="Tama\xF1o original" aria-label="Tama\xF1o original">100%</button>
8847
+ <button type="button" data-diagram-zoom="out" title="Alejar (Ctrl + rueda)" aria-label="Alejar">\u2212</button>
8848
+ <button type="button" data-diagram-zoom="reset" data-diagram-level title="Tama\xF1o original" aria-label="Tama\xF1o original">100%</button>
8849
+ <button type="button" data-diagram-zoom="in" title="Acercar (Ctrl + rueda)" aria-label="Acercar">\uFF0B</button>
8850
+ <button type="button" data-diagram-fit title="Ajustar al ancho / tama\xF1o real" aria-label="Ajustar al ancho">\u2922</button>
8832
8851
  <button type="button" data-diagram-fullscreen title="Pantalla completa (Esc para salir)" aria-label="Pantalla completa">\u26F6</button>
8833
8852
  <button type="button" data-diagram-download title="Descargar SVG" aria-label="Descargar SVG">\u2913</button>
8834
8853
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specatlas",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
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.17"
44
44
  },
45
45
  "scripts": {
46
46
  "typecheck": "tsc --noEmit",