prosemirror-schema-list
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -0,1 +1,7 @@ | ||
## 1.4.1 (2024-07-14) | ||
### Bug fixes | ||
Add attribute type validation for ordered list nodes. | ||
## 1.4.0 (2024-06-10) | ||
@@ -2,0 +8,0 @@ |
@@ -13,3 +13,3 @@ import { findWrapping, ReplaceAroundStep, canSplit, liftTarget, canJoin } from 'prosemirror-transform'; | ||
const orderedList = { | ||
attrs: { order: { default: 1 } }, | ||
attrs: { order: { default: 1, validate: "number" } }, | ||
parseDOM: [{ tag: "ol", getAttrs(dom) { | ||
@@ -16,0 +16,0 @@ return { order: dom.hasAttribute("start") ? +dom.getAttribute("start") : 1 }; |
{ | ||
"name": "prosemirror-schema-list", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "List-related schema elements and commands for ProseMirror", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -13,3 +13,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep, canJoin} from "prosemirror-transform" | ||
export const orderedList = { | ||
attrs: {order: {default: 1}}, | ||
attrs: {order: {default: 1, validate: "number"}}, | ||
parseDOM: [{tag: "ol", getAttrs(dom: HTMLElement) { | ||
@@ -16,0 +16,0 @@ return {order: dom.hasAttribute("start") ? +dom.getAttribute("start")! : 1} |
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
51691
810