@examind/block-sdk 0.1.22 → 0.1.23

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/dist/index.js CHANGED
@@ -1016,7 +1016,7 @@ var createCaptionNode = (caption) => {
1016
1016
  return [];
1017
1017
  }
1018
1018
  const captionNode = createEmptyParagraphNode("center");
1019
- captionNode.children = caption.split("\n").reduce((nodes, line, index, lines) => {
1019
+ captionNode.children = caption.split("<br>").reduce((nodes, line, index, lines) => {
1020
1020
  nodes.push({
1021
1021
  detail: 0,
1022
1022
  format: 0,
@@ -1112,7 +1112,7 @@ function processImageNodeContainer(node) {
1112
1112
  extractWidth(imageNode),
1113
1113
  extractFlexAlign(node),
1114
1114
  hasBorder(imageNode),
1115
- captionNode?.text
1115
+ captionNode?.innerHTML
1116
1116
  )
1117
1117
  ];
1118
1118
  }
package/dist/index.mjs CHANGED
@@ -989,7 +989,7 @@ var createCaptionNode = (caption) => {
989
989
  return [];
990
990
  }
991
991
  const captionNode = createEmptyParagraphNode("center");
992
- captionNode.children = caption.split("\n").reduce((nodes, line, index, lines) => {
992
+ captionNode.children = caption.split("<br>").reduce((nodes, line, index, lines) => {
993
993
  nodes.push({
994
994
  detail: 0,
995
995
  format: 0,
@@ -1085,7 +1085,7 @@ function processImageNodeContainer(node) {
1085
1085
  extractWidth(imageNode),
1086
1086
  extractFlexAlign(node),
1087
1087
  hasBorder(imageNode),
1088
- captionNode?.text
1088
+ captionNode?.innerHTML
1089
1089
  )
1090
1090
  ];
1091
1091
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-sdk",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "@comment version": [
5
5
  "Don't specify package version here. It will be injected by publish workflow."
6
6
  ],
@@ -21,7 +21,7 @@
21
21
  "peerDependencies": {
22
22
  "nanoid": ">=3.0.0",
23
23
  "node-html-parser": ">=6.0.0",
24
- "@examind/block-types": "^0.1.22"
24
+ "@examind/block-types": "^0.1.23"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@eslint/js": "^9.17.0",
@@ -36,7 +36,7 @@
36
36
  "tsup": "^8.3.5",
37
37
  "typescript": "^5.7.2",
38
38
  "typescript-eslint": "^8.18.2",
39
- "@examind/block-types": "0.1.22"
39
+ "@examind/block-types": "0.1.23"
40
40
  },
41
41
  "dependencies": {
42
42
  "lodash-es": "4.17.21"