prosemirror-transform 1.3.2 → 1.3.3
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/CHANGELOG.md +6 -0
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/replace.js +4 -1
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1677,7 +1677,10 @@ function coveredDepths($from, $to) {
|
|
|
1677
1677
|
$to.end(d) > $to.pos + ($to.depth - d) ||
|
|
1678
1678
|
$from.node(d).type.spec.isolating ||
|
|
1679
1679
|
$to.node(d).type.spec.isolating) { break }
|
|
1680
|
-
if (start == $to.start(d)
|
|
1680
|
+
if (start == $to.start(d) ||
|
|
1681
|
+
(d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent &&
|
|
1682
|
+
d && $to.start(d - 1) == start - 1))
|
|
1683
|
+
{ result.push(d); }
|
|
1681
1684
|
}
|
|
1682
1685
|
return result
|
|
1683
1686
|
}
|