@bendyline/squisq 2.11.1 → 2.11.2

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.
@@ -30,7 +30,7 @@ import {
30
30
  templateRegistry,
31
31
  writeCustomTemplatesToFrontmatter,
32
32
  writeCustomThemesToFrontmatter
33
- } from "./chunk-B26DU2RH.js";
33
+ } from "./chunk-RO7WVERN.js";
34
34
  import {
35
35
  iconMarker
36
36
  } from "./chunk-7ZAAICW4.js";
@@ -3,7 +3,7 @@ import {
3
3
  expectedSyllablesAt,
4
4
  flattenRenderableBlocks,
5
5
  wordPosAtExpectedSyllables
6
- } from "./chunk-B26DU2RH.js";
6
+ } from "./chunk-RO7WVERN.js";
7
7
 
8
8
  // src/narration/types.ts
9
9
  var DEFAULT_FEATURE_CONFIG = Object.freeze({
@@ -1513,9 +1513,11 @@ function renderMarkdownBlocksHtml(nodes) {
1513
1513
  return "<hr>";
1514
1514
  case "table": {
1515
1515
  const [head, ...body] = node.children;
1516
- const row = (cells, header) => `<tr>${cells.map((cell) => {
1516
+ const row = (cells, header) => `<tr>${cells.map((cell, columnIndex) => {
1517
1517
  const tag = header ? "th" : "td";
1518
- return `<${tag}>${renderInlineHtml(cell.children)}</${tag}>`;
1518
+ const alignment = node.align?.[columnIndex];
1519
+ const alignAttribute = alignment ? ` align="${alignment}"` : "";
1520
+ return `<${tag}${alignAttribute}>${renderInlineHtml(cell.children)}</${tag}>`;
1519
1521
  }).join("")}</tr>`;
1520
1522
  const thead = head ? `<thead>${row(head.children, true)}</thead>` : "";
1521
1523
  const tbody = body.length ? `<tbody>${body.map((item) => row(item.children, false)).join("")}</tbody>` : "";
package/dist/doc/index.js CHANGED
@@ -70,7 +70,7 @@ import {
70
70
  validateMarkdownDoc,
71
71
  validateMarkdownSource,
72
72
  writeDashboardLayoutsToFrontmatter
73
- } from "../chunk-QQ4I5HWV.js";
73
+ } from "../chunk-56MJWI5M.js";
74
74
  import {
75
75
  ASCII_CHAR_H,
76
76
  ASCII_CHAR_W,
@@ -192,7 +192,7 @@ import {
192
192
  wrapWithPersistentLayers,
193
193
  writeCustomTemplatesToFrontmatter,
194
194
  writeCustomThemesToFrontmatter
195
- } from "../chunk-B26DU2RH.js";
195
+ } from "../chunk-RO7WVERN.js";
196
196
  import {
197
197
  PATH_SHAPE_KINDS,
198
198
  anchorPoint,
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  recordSlideShown,
28
28
  traceWordPosAt,
29
29
  vadStep
30
- } from "./chunk-UXKFSYTQ.js";
30
+ } from "./chunk-QWN5CLCP.js";
31
31
  import {
32
32
  fenceRendererLangs
33
33
  } from "./chunk-PGI7HSWE.js";
@@ -227,7 +227,7 @@ import {
227
227
  validateMarkdownDoc,
228
228
  validateMarkdownSource,
229
229
  writeDashboardLayoutsToFrontmatter
230
- } from "./chunk-QQ4I5HWV.js";
230
+ } from "./chunk-56MJWI5M.js";
231
231
  import {
232
232
  ASCII_CHAR_H,
233
233
  ASCII_CHAR_W,
@@ -357,7 +357,7 @@ import {
357
357
  wrapWithPersistentLayers,
358
358
  writeCustomTemplatesToFrontmatter,
359
359
  writeCustomThemesToFrontmatter
360
- } from "./chunk-B26DU2RH.js";
360
+ } from "./chunk-RO7WVERN.js";
361
361
  import {
362
362
  PATH_SHAPE_KINDS,
363
363
  anchorPoint,
@@ -27,7 +27,7 @@ import {
27
27
  recordSlideShown,
28
28
  traceWordPosAt,
29
29
  vadStep
30
- } from "../chunk-UXKFSYTQ.js";
30
+ } from "../chunk-QWN5CLCP.js";
31
31
  import {
32
32
  buildNarrationScript,
33
33
  buildNarrationTimingJson,
@@ -37,7 +37,7 @@ import {
37
37
  wordIndexAtChar,
38
38
  wordIndexAtTime,
39
39
  wordPosAtExpectedSyllables
40
- } from "../chunk-B26DU2RH.js";
40
+ } from "../chunk-RO7WVERN.js";
41
41
  import "../chunk-PUS54YU6.js";
42
42
  import "../chunk-6ATZOUCQ.js";
43
43
  import "../chunk-SBAX4ZPO.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "Headless utilities for doc/block rendering, spatial math, Markdown, and storage",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",