prosemirror-model
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -0,1 +1,7 @@ | ||
## 1.10.1 (2020-07-08) | ||
### Bug fixes | ||
Fix a bug that prevented non-canonical list structure from being normalized. | ||
## 1.10.0 (2020-05-25) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-model", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "ProseMirror's document model", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -428,3 +428,3 @@ import {Fragment} from "./fragment" | ||
let name = dom.nodeName.toLowerCase() | ||
if (listTags.hasOwnProperty(name) && this.normalizeLists) normalizeList(dom) | ||
if (listTags.hasOwnProperty(name) && this.parser.normalizeLists) normalizeList(dom) | ||
let rule = (this.options.ruleFromNode && this.options.ruleFromNode(dom)) || this.parser.matchTag(dom, this) | ||
@@ -431,0 +431,0 @@ if (rule ? rule.ignore : ignoreTags.hasOwnProperty(name)) { |
@@ -225,3 +225,3 @@ import {Fragment} from "./fragment" | ||
// :: (number, number, Mark | MarkType) → bool | ||
// :: (number, number, union<Mark, MarkType>) → bool | ||
// Test whether a given mark or mark type occurs in this document | ||
@@ -228,0 +228,0 @@ // between the two given positions. |
@@ -82,3 +82,3 @@ import {Fragment} from "./fragment" | ||
throw new RangeError("Invalid input for Slice.fromJSON") | ||
return new Slice(Fragment.fromJSON(schema, json.content), json.openStart || 0, json.openEnd || 0) | ||
return new Slice(Fragment.fromJSON(schema, json.content), openStart, openEnd) | ||
} | ||
@@ -85,0 +85,0 @@ |
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
851690