@uniweb/semantic-parser 1.1.13 → 1.1.14

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.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Semantic parser for ProseMirror/TipTap content structures",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -572,6 +572,8 @@ function parseImgBlock(itemAttrs) {
572
572
  theme,
573
573
  role,
574
574
  credit = "",
575
+ id, // {#fig-id} cross-reference label — preserved so Press
576
+ // adapters can emit \label{id} (LaTeX) / <id> (Typst).
575
577
  } = itemAttrs;
576
578
 
577
579
  let { contentType, viewType, contentId, identifier } = imgInfo || {};
@@ -605,6 +607,7 @@ function parseImgBlock(itemAttrs) {
605
607
  theme,
606
608
  role,
607
609
  credit,
610
+ id: id || undefined,
608
611
  };
609
612
  }
610
613