@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 +1 -1
- package/src/processors/groups.js +6 -1
package/package.json
CHANGED
package/src/processors/groups.js
CHANGED
|
@@ -285,7 +285,12 @@ function processGroupContent(elements) {
|
|
|
285
285
|
break;
|
|
286
286
|
|
|
287
287
|
case "image":
|
|
288
|
-
|
|
288
|
+
// Check if this image is actually an icon (role="icon" from  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":
|