prosemirror-model
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -0,1 +1,9 @@ | ||
## 1.7.1 (2019-05-31) | ||
### Bug fixes | ||
Using `Fragment.from` on an invalid value, including a `Fragment` instance from a different version/instance of the library, now raises a meaningful error rather than getting confused. | ||
Fix a bug in parsing overlapping marks of the same non-self-exclusive type. | ||
## 1.7.0 (2019-01-29) | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -260,3 +260,5 @@ import {findDiffStart, findDiffEnd} from "./diff" | ||
if (Array.isArray(nodes)) return this.fromArray(nodes) | ||
return new Fragment([nodes], nodes.nodeSize) | ||
if (nodes.attrs) return new Fragment([nodes], nodes.nodeSize) | ||
throw new RangeError("Can not convert " + nodes + " to a Fragment" + | ||
(nodes.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : "")) | ||
} | ||
@@ -263,0 +265,0 @@ } |
@@ -533,3 +533,3 @@ import {Fragment} from "./fragment" | ||
let mark = this.pendingMarks[i] | ||
if ((!top.type || top.type.allowsMarkType(mark.type)) && !mark.type.isInSet(top.activeMarks)) { | ||
if ((!top.type || top.type.allowsMarkType(mark.type)) && !mark.isInSet(top.activeMarks)) { | ||
top.activeMarks = mark.addToSet(top.activeMarks) | ||
@@ -536,0 +536,0 @@ this.pendingMarks.splice(i--, 1) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
495153
5973