prosemirror-model
Advanced tools
Comparing version 1.14.0 to 1.14.1
@@ -0,1 +1,7 @@ | ||
## 1.14.1 (2021-04-26) | ||
### Bug fixes | ||
DOM parsing with `preserveWhitespace: "full"` will no longer ignore whitespace-only nodes. | ||
## 1.14.0 (2021-04-06) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -414,3 +414,5 @@ import {Fragment} from "./fragment" | ||
let top = this.top | ||
if ((top.type ? top.type.inlineContent : top.content.length && top.content[0].isInline) || /[^ \t\r\n\u000c]/.test(value)) { | ||
if (top.options & OPT_PRESERVE_WS_FULL || | ||
(top.type ? top.type.inlineContent : top.content.length && top.content[0].isInline) || | ||
/[^ \t\r\n\u000c]/.test(value)) { | ||
if (!(top.options & OPT_PRESERVE_WS)) { | ||
@@ -417,0 +419,0 @@ value = value.replace(/[ \t\r\n\u000c]+/g, " ") |
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
898529
9231