@uniweb/semantic-parser 1.0.15 → 1.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/semantic-parser",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Semantic parser for ProseMirror/TipTap content structures",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -285,7 +285,12 @@ function processGroupContent(elements) {
285
285
  break;
286
286
 
287
287
  case "image":
288
- body.imgs.push(preserveProps);
288
+ // Check if this image is actually an icon (role="icon" from ![](lu-zap) syntax)
289
+ if (element.attrs?.role === "icon") {
290
+ body.icons.push(element.attrs);
291
+ } else {
292
+ body.imgs.push(preserveProps);
293
+ }
289
294
  break;
290
295
 
291
296
  case "video":