prosemirror-transform
Advanced tools
Comparing version 1.2.8 to 1.2.9
@@ -0,1 +1,7 @@ | ||
## 1.2.9 (2021-01-19) | ||
### Bug fixes | ||
Fix an issue where `AddMarkStep` would mark inline nodes with content. | ||
## 1.2.8 (2020-08-11) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "ProseMirror document transformations", | ||
@@ -26,4 +26,4 @@ "main": "dist/index.js", | ||
"prosemirror-test-builder": "^1.0.0", | ||
"rollup": "^1.26.3", | ||
"@rollup/plugin-buble": "^0.20.0" | ||
"rollup": "^2.26.3", | ||
"@rollup/plugin-buble": "^0.21.3" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
@@ -13,3 +13,3 @@ module.exports = { | ||
plugins: [require('@rollup/plugin-buble')()], | ||
external(id) { return !/^[\.\/]/.test(id) } | ||
external(id) { return id[0] != "." && !require("path").isAbsolute(id) } | ||
} |
@@ -29,3 +29,3 @@ import {Fragment, Slice} from "prosemirror-model" | ||
let slice = new Slice(mapFragment(oldSlice.content, (node, parent) => { | ||
if (!parent.type.allowsMarkType(this.mark.type)) return node | ||
if (!node.isAtom || !parent.type.allowsMarkType(this.mark.type)) return node | ||
return node.mark(this.mark.addToSet(node.marks)) | ||
@@ -32,0 +32,0 @@ }, parent), oldSlice.openStart, oldSlice.openEnd) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
490130
22