@uniweb/semantic-parser 1.13.1 → 1.13.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/semantic-parser",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "Semantic parser for ProseMirror/TipTap content structures",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -588,10 +588,12 @@ function processInlineElements(children, body) {
588
588
  } else if (item.type === "document") {
589
589
  // And an inline `{role=pdf}` in documents[].
590
590
  body.documents.push(item.attrs);
591
- } else if (item.type === "link") {
592
- // Handle inline links extracted from paragraph text nodes
593
- body.links.push(item.attrs);
594
591
  }
592
+ // A link inside a sentence stays in the sentence: `links` holds the links that stand on
593
+ // their own line, which reach it as `link` elements. ⛔ From 2026-01-17 until 2026-10-31
594
+ // this also copied every link out of every paragraph, a fix for two links on consecutive
595
+ // lines that never checked the paragraph held only links. So a section drawing `links`
596
+ // drew a sentence's link a second time, and `links[0]` could be one from the prose.
595
597
  });
596
598
  }
597
599